Skip to content

Commit

Permalink
chore: test on windows in addition to linux
Browse files Browse the repository at this point in the history
  • Loading branch information
TeeeJay committed Nov 26, 2024
1 parent 062f3f4 commit 65e5ae2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/lib-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ env:
jobs:

run-tests-with-coverage:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
platform: [ubuntu-latest, windows-latest] #, macos-latest] too? expensive and unnecessary I have heard
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -44,7 +45,7 @@ jobs:

- name: Get Test Coverage score
id: total
if: matrix.python-version == '3.11'
if: matrix.python-version == '3.11' && matrix.platform == 'ubuntu-latest'
run: |
poetry run python -m coverage report --fail-under 50
poetry run python -m coverage html -d build/
Expand All @@ -57,7 +58,7 @@ jobs:
run: poetry build

- name: Push coverage report to coverage-report branch
if: github.ref == 'refs/heads/main' && matrix.python-version == '3.11'
if: github.ref == 'refs/heads/main' && matrix.python-version == '3.11' && matrix.platform == 'ubuntu-latest'
run: |
cd build
CREATED_FROM_REF=$(git rev-parse --short HEAD)
Expand Down

0 comments on commit 65e5ae2

Please sign in to comment.