Skip to content

Commit 74dfc08

Browse files
committed
We still support Python 2.7
1 parent 79b6d26 commit 74dfc08

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
fail-fast: false
77
matrix:
88
os: ["ubuntu-latest"]
9-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.13t", "3.14", "3.14t"]
9+
python-version: ["2.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.13t", "3.14", "3.14t"]
1010
include:
1111
- os: macos-latest
1212
python-version: "3.x"
@@ -15,10 +15,19 @@ jobs:
1515
runs-on: ${{ matrix.os }}
1616
steps:
1717
- uses: actions/checkout@v5
18-
- uses: actions/setup-python@v6
18+
- name: Set up Python ${{ matrix.python-version }}
19+
if: matrix.python-version != '2.7'
20+
uses: actions/setup-python@v5
1921
with:
2022
python-version: ${{ matrix.python-version }}
21-
allow-prereleases: true
23+
- name: Set up Python 2
24+
if: matrix.python-version == '2.7'
25+
run: |
26+
sudo rm -f $(which python) $(which pip)
27+
sudo apt-get install python2.7-dev
28+
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
29+
python2.7 get-pip.py
30+
sudo ln -sf "$(which python2.7)" "$(dirname $(which python2.7))/python"
2231
- run: pip install --upgrade pip
2332
- run: pip install --upgrade pytest
2433
- run: pip install --editable .

0 commit comments

Comments
 (0)