Skip to content

Commit 24060ec

Browse files
Use matrix strategy for tests
1 parent 6934377 commit 24060ec

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,17 @@ name: Run tests
22
on: pull_request
33
jobs:
44
run-tests:
5-
name: Run tests
5+
name: Run tests on python ${{ matrix.python-version }}
66
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
710
steps:
8-
- uses: actions/checkout@v4
9-
- name: Set up Python
10-
uses: actions/setup-python@v5
11-
with:
12-
python-version: |
13-
3.9
14-
3.10
15-
3.11
16-
3.12
17-
3.13
18-
- name: Install requirements
19-
run: pip install -r requirements-dev.txt
20-
- name: Run tests
21-
run: python -m pytest tests
11+
- uses: actions/checkout@v4
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
14+
python-version: ${{ matrix.python-version }}
15+
- name: Install requirements
16+
run: pip install -r requirements-dev.txt
17+
- name: Run tests
18+
run: python -m pytest tests

0 commit comments

Comments
 (0)