Skip to content

Commit 3027797

Browse files
authored
Merge pull request #72 from ReadAlongs/dev.ej/matrix-tests
ci: run pytest on a os X python-version matrix
2 parents e6accb2 + 233c670 commit 3027797

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
@@ -30,41 +30,21 @@ jobs:
3030
- name: Run tests
3131
run: |
3232
CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target check
33+
3334
pytest:
34-
runs-on: ubuntu-latest
35+
strategy:
36+
matrix:
37+
os: [ubuntu-latest, windows-latest, macos-latest]
38+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
39+
runs-on: ${{ matrix.os }}
3540
steps:
36-
- name: Checkout
37-
uses: actions/checkout@v4
41+
- uses: actions/checkout@v4
3842
- uses: actions/setup-python@v5
3943
with:
40-
python-version: "3.10"
41-
- name: Install
42-
run: |
43-
pip3 install .[dev]
44-
- name: Run tests
45-
run: python3 -m pytest
46-
wintest:
47-
runs-on: windows-latest
48-
steps:
49-
- name: Checkout
50-
uses: actions/checkout@v4
51-
- uses: actions/setup-python@v5
52-
- name: Install
53-
run: |
54-
pip3 install .[dev]
55-
- name: Run tests
56-
run: python3 -m pytest
57-
mactest:
58-
runs-on: macos-latest
59-
steps:
60-
- name: Checkout
61-
uses: actions/checkout@v4
62-
- uses: actions/setup-python@v5
63-
- name: Install
64-
run: |
65-
pip install .[dev]
66-
- name: Run tests
67-
run: python -m pytest
44+
python-version: ${{ matrix.python-version }}
45+
- run: pip3 install .[dev]
46+
- run: python3 -m pytest
47+
6848
nodetest:
6949
runs-on: ubuntu-latest
7050
steps:

0 commit comments

Comments
 (0)