Skip to content

Commit

Permalink
Coverage is busted for 3.12, disable it
Browse files Browse the repository at this point in the history
  • Loading branch information
obackhouse committed Aug 9, 2024
1 parent 32ff586 commit 45c149a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
fail-fast: false
matrix:
include:
- {python-version: "3.9", os: ubuntu-latest, documentation: True}
- {python-version: "3.10", os: ubuntu-latest, documentation: False}
- {python-version: "3.11", os: ubuntu-latest, documentation: False}
- {python-version: "3.12", os: ubuntu-latest, documentation: False}
- {python-version: "3.9", os: ubuntu-latest, documentation: True, coverage: True}
- {python-version: "3.10", os: ubuntu-latest, documentation: False, coverage: True}
- {python-version: "3.11", os: ubuntu-latest, documentation: False, coverage: True}
- {python-version: "3.12", os: ubuntu-latest, documentation: False, coverage: False}

steps:
- uses: actions/checkout@v2
Expand All @@ -39,12 +39,18 @@ jobs:
python -m isort ebcc/ --diff --check-only --verbose
python -m flake8 ebcc/ --verbose
python -m mypy ebcc/ --verbose
- name: Run unit tests
- name: Run unit tests with coverage
run: |
python -m pip install pytest pytest-cov
pytest --cov ebcc/
if: matrix.coverage
- name: Run unit tests
run: |
python -m pip install pytest
pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
if: matrix.coverage

0 comments on commit 45c149a

Please sign in to comment.