Skip to content

Commit

Permalink
Merge pull request #72 from ReadAlongs/dev.ej/matrix-tests
Browse files Browse the repository at this point in the history
ci: run pytest on a os X python-version matrix
  • Loading branch information
dhdaines authored Dec 13, 2024
2 parents e6accb2 + 233c670 commit 3027797
Showing 1 changed file with 11 additions and 31 deletions.
42 changes: 11 additions & 31 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,41 +30,21 @@ jobs:
- name: Run tests
run: |
CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target check
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install
run: |
pip3 install .[dev]
- name: Run tests
run: python3 -m pytest
wintest:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install
run: |
pip3 install .[dev]
- name: Run tests
run: python3 -m pytest
mactest:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install
run: |
pip install .[dev]
- name: Run tests
run: python -m pytest
python-version: ${{ matrix.python-version }}
- run: pip3 install .[dev]
- run: python3 -m pytest

nodetest:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 3027797

Please sign in to comment.