Skip to content

Commit 3116611

Browse files
committed
python3: add to github workflow matrix
1 parent e418201 commit 3116611

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,23 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.8", "pypy-3.9"]
16+
os: [ubuntu-20.04, ubuntu-22.04, macOS-latest, windows-latest]
1517
include:
1618
- python-version: "2.7"
1719
os: "ubuntu-20.04"
1820
- python-version: "2.7"
1921
os: "ubuntu-22.04"
2022
steps:
2123
- uses: actions/checkout@v4.1.0
22-
- name: Set up Python ${{ matrix.python-version }}
24+
- name: Set up Python ${{ matrix.python-version }} (github action)
25+
if: matrix.python-version != '2.7'
26+
uses: actions/setup-python@v4.7.0
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
cache: 'pip'
30+
- name: Set up Python ${{ matrix.python-version }} (apt-get)
31+
if: matrix.python-version == '2.7'
2332
# since actions/python-versions removed 2.7 from versions-manifest.json
2433
# and also deleted all the python 2.7 binary artifacts,
2534
# we have to apt-get install python2

0 commit comments

Comments
 (0)