Skip to content

Commit

Permalink
Run tests with coverage only with Python3.12
Browse files Browse the repository at this point in the history
Coverage is not working with Python3.11 since the COVERAGE_CORE setting
was added by !31.  Disable coverage run for Python3.11 as we only need
coverage to run for one Python version, preferably the latest.

Closes #3
  • Loading branch information
pierretr committed Dec 11, 2024
1 parent ed1d31b commit 507e98a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ jobs:
run: |
python -m pip install -U pip
python -m pip install tox
- name: Run Tox
- name: Run Tox without coverage
if: matrix.python != '3.12'
run: tox
env:
TOXENV: py${{ matrix.python-version}}
- name: Run Tox with coverage
if: matrix.python == '3.12'
run: tox
env:
TOXENV: py${{ matrix.python-version}}-cov-codecov
Expand Down

0 comments on commit 507e98a

Please sign in to comment.