Skip to content

Commit 233c670

Browse files
committed
ci: run pytest on a os X python-version matrix
1 parent 151377a commit 233c670

File tree

1 file changed

+11
-31
lines changed

1 file changed

+11
-31
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,41 +22,21 @@ jobs:
2222
- name: Run tests
2323
run: |
2424
CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target check
25+
2526
pytest:
26-
runs-on: ubuntu-latest
27+
strategy:
28+
matrix:
29+
os: [ubuntu-latest, windows-latest, macos-latest]
30+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
31+
runs-on: ${{ matrix.os }}
2732
steps:
28-
- name: Checkout
29-
uses: actions/checkout@v4
33+
- uses: actions/checkout@v4
3034
- uses: actions/setup-python@v5
3135
with:
32-
python-version: "3.10"
33-
- name: Install
34-
run: |
35-
pip3 install .[dev]
36-
- name: Run tests
37-
run: python3 -m pytest
38-
wintest:
39-
runs-on: windows-latest
40-
steps:
41-
- name: Checkout
42-
uses: actions/checkout@v4
43-
- uses: actions/setup-python@v5
44-
- name: Install
45-
run: |
46-
pip3 install .[dev]
47-
- name: Run tests
48-
run: python3 -m pytest
49-
mactest:
50-
runs-on: macos-latest
51-
steps:
52-
- name: Checkout
53-
uses: actions/checkout@v4
54-
- uses: actions/setup-python@v5
55-
- name: Install
56-
run: |
57-
pip install .[dev]
58-
- name: Run tests
59-
run: python -m pytest
36+
python-version: ${{ matrix.python-version }}
37+
- run: pip3 install .[dev]
38+
- run: python3 -m pytest
39+
6040
nodetest:
6141
runs-on: ubuntu-latest
6242
steps:

0 commit comments

Comments
 (0)