Skip to content

Commit

Permalink
Merge pull request #3112 from abravalheri/disable-coverage-pypy
Browse files Browse the repository at this point in the history
Disable coverage on PyPy
  • Loading branch information
jaraco committed Feb 18, 2022
2 parents ba029ee + 7108899 commit 1181440
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@ coverage:
status:
project:
default:
informational: true # Treat coverage info as informational only
threshold: 0.5%
patch:
default:
informational: true # Treat coverage info as informational only
github_checks:
annotations: false # Codecov may pollute the "files" diff view
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ jobs:
run: |
python -m pip install tox
- name: Run tests
run: tox -- --cov-report xml
run: tox
- name: Create coverage report
if: hashFiles('.coverage') != '' # Rudimentary `file.exists()`
run: pipx run coverage xml --ignore-errors
- name: Publish coverage
if: false # disabled for #2727
if: hashFiles('coverage.xml') != '' # Rudimentary `file.exists()`
uses: codecov/codecov-action@v1
with:
flags: >- # Mark which lines are covered by which envs
Expand Down
4 changes: 3 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ testing =
pytest-black >= 0.3.7; \
# workaround for jaraco/skeleton#22
python_implementation != "PyPy"
pytest-cov
pytest-cov; \
# coverage seems to make PyPy extremely slow
python_implementation != "PyPy"
pytest-mypy >= 0.9.1; \
# workaround for jaraco/skeleton#22
python_implementation != "PyPy"
Expand Down

0 comments on commit 1181440

Please sign in to comment.