Skip to content

Commit 85939be

Browse files
committed
python 2.7 has been removed on github, use workaround
found at cython/cython#5493 (comment)
1 parent 3581bf7 commit 85939be

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/run_test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,20 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v3
1414
- name: Set up Python ${{ matrix.python-version }}
15+
if: startsWith(matrix.python-version, '3.')
1516
uses: actions/setup-python@v4
1617
with:
1718
python-version: ${{ matrix.python-version }}
19+
- name: Setup Python2 (Linux)
20+
 if: matrix.python-version == '2.7' && startsWith(matrix.os, 'ubuntu')
21+
 run: |
22+
sudo ln -fs python2 /usr/bin/python
23+
 sudo apt-get update
24+
 sudo apt-get install python-setuptools python-dev
25+
 curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
26+
 sudo python2 get-pip.py
27+
 ls -l /usr/bin/pip* /usr/local/bin/pip*
28+
 which pip
1829
- name: Install packages
1930
run: |
2031
sudo apt-get install cython3 lcov

0 commit comments

Comments
 (0)