Skip to content

Commit

Permalink
Fix Python2.7 CodeQL workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oddstr13 authored Jun 29, 2023
1 parent 5c5b1d1 commit 18f6120
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,23 @@ jobs:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Set up Python
- name: Set up Python ${{ matrix.version }}
if: matrix.version != '2.7'
uses: actions/setup-python@v4
with:
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
uses: github/codeql-action/autobuild@v2

Expand Down

0 comments on commit 18f6120

Please sign in to comment.