Skip to content

Commit

Permalink
CI: Fix setup on Py2.7 by disabling the "setup-python" action and usi…
Browse files Browse the repository at this point in the history
…ng the system installed Python2.
  • Loading branch information
scoder committed Jul 3, 2023
1 parent c660070 commit d80908c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -149,9 +149,21 @@ jobs:

- name: Setup Python
uses: actions/setup-python@v4
if: startsWith(matrix.python-version, '3.')
with:
python-version: ${{ matrix.python-version }}

- name: Setup Python2 (Linux)
if: matrix.python-version == '2.7' && startsWith(matrix.os, 'ubuntu')
run: |
sudo ln -fs python2 /usr/bin/python
sudo apt-get update
sudo apt-get install python-setuptools python-dev
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
ls -l /usr/bin/pip* /usr/local/bin/pip*
which pip
- name: Cache [ccache]
uses: pat-s/always-upload-cache@v3.0.11
if: startsWith(runner.os, 'Linux')
Expand Down

0 comments on commit d80908c

Please sign in to comment.