mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix Python2.7 CodeQL workflow
This commit is contained in:
parent
5c5b1d14cb
commit
18f61200e7
1 changed files with 13 additions and 1 deletions
14
.github/workflows/codeql.yaml
vendored
14
.github/workflows/codeql.yaml
vendored
|
@ -29,11 +29,23 @@ jobs:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
queries: +security-and-quality
|
queries: +security-and-quality
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python ${{ matrix.version }}
|
||||||
|
if: matrix.version != '2.7'
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.version }}
|
python-version: ${{ matrix.version }}
|
||||||
|
|
||||||
|
- name: Set up Python 2.7
|
||||||
|
if: matrix.version == '2.7'
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y \
|
||||||
|
python2.7 python2.7-dev python2-pip-whl
|
||||||
|
sudo ln -sf python2.7 /usr/bin/python
|
||||||
|
export PYTHONPATH=`echo /usr/share/python-wheels/pip-*py2*.whl`
|
||||||
|
sudo --preserve-env=PYTHONPATH python -m pip install --upgrade pip setuptools wheel
|
||||||
|
sudo chown -R $USER /usr/local/lib/python2.7
|
||||||
|
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@v2
|
uses: github/codeql-action/autobuild@v2
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue