Skip to content

Commit 356477d

Browse files
committed
Restore Python 2.7 tests
1 parent c690643 commit 356477d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,26 @@ jobs:
1313
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
1414
exclude:
1515
- python-version: "2.7"
16-
os: "ubuntu-latest"
16+
os: "windows-latest"
17+
- python-version: "2.7"
18+
os: "macos-latest"
1719
- python-version: "3.6"
1820
os: "ubuntu-latest"
1921
include:
20-
- python-version: "2.7"
21-
os: "ubuntu-20.04"
2222
- python-version: "3.6"
2323
os: "ubuntu-20.04"
2424
env:
2525
TOXENV: py
2626

2727
steps:
2828
- uses: actions/checkout@v3
29-
- name: ${{ matrix.python-version }} - ${{ matrix.os }}
29+
- if: ${{ matrix.python-version == '2.7' }}
30+
run: |
31+
sudo apt-get install python-is-python2
32+
curl -sSL https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
33+
python get-pip.py
34+
- if: ${{ matrix.python-version != '2.7' }}
35+
name: ${{ matrix.python-version }} - ${{ matrix.os }}
3036
uses: actions/setup-python@v4
3137
with:
3238
python-version: ${{ matrix.python-version }}

0 commit comments

Comments
 (0)