Skip to content

Commit 3c0618c

Browse files
committed
test: use matrix for tests on Python versions
1 parent 6968022 commit 3c0618c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ jobs:
55
build:
66

77
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
12+
name: Python ${{ matrix.python-version }}
813

914
steps:
1015
- uses: actions/checkout@v4
11-
- name: Set up Python 3.7
16+
- name: Set up Python ${{ matrix.python-version }}
1217
uses: actions/setup-python@v5
1318
with:
14-
python-version: 3.7
19+
python-version: ${{ matrix.python-version }}
1520
- name: Install dependencies
1621
run: |
1722
python -m pip install --upgrade pip

dev-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
-r requirements.txt
22
pytest
33
flake8
4+
setuptools; python_version > "3.11"

0 commit comments

Comments
 (0)