Skip to content

Commit

Permalink
Conditionally disable coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Nov 15, 2023
1 parent b1c04c1 commit f97a353
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ jobs:
- name: Run tests and report coverage
if: github.ref_name != 'main'
run: pytest --cov -n auto --dist loadgroup -m "not benchmark and not docs"
env:
# Skip coverage for Ubuntu + Python 3.12 due to performance issues
# https://github.com/nedbat/coveragepy/issues/1665
COV: ${{ (matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12') && '' || '--cov' }}
run: pytest $COV -n auto --dist loadgroup -m "not benchmark and not docs"

- name: Run tests async reader tests
if: github.ref_name != 'main' && matrix.os != 'windows-latest'
Expand Down

0 comments on commit f97a353

Please sign in to comment.