Skip to content

Commit 1181440

Browse files
authored
Merge pull request #3112 from abravalheri/disable-coverage-pypy
Disable coverage on PyPy
2 parents ba029ee + 7108899 commit 1181440

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.codecov.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@ coverage:
33
status:
44
project:
55
default:
6+
informational: true # Treat coverage info as informational only
67
threshold: 0.5%
8+
patch:
9+
default:
10+
informational: true # Treat coverage info as informational only
11+
github_checks:
12+
annotations: false # Codecov may pollute the "files" diff view

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@ jobs:
4343
run: |
4444
python -m pip install tox
4545
- name: Run tests
46-
run: tox -- --cov-report xml
46+
run: tox
47+
- name: Create coverage report
48+
if: hashFiles('.coverage') != '' # Rudimentary `file.exists()`
49+
run: pipx run coverage xml --ignore-errors
4750
- name: Publish coverage
48-
if: false # disabled for #2727
51+
if: hashFiles('coverage.xml') != '' # Rudimentary `file.exists()`
4952
uses: codecov/codecov-action@v1
5053
with:
5154
flags: >- # Mark which lines are covered by which envs

setup.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ testing =
4646
pytest-black >= 0.3.7; \
4747
# workaround for jaraco/skeleton#22
4848
python_implementation != "PyPy"
49-
pytest-cov
49+
pytest-cov; \
50+
# coverage seems to make PyPy extremely slow
51+
python_implementation != "PyPy"
5052
pytest-mypy >= 0.9.1; \
5153
# workaround for jaraco/skeleton#22
5254
python_implementation != "PyPy"

0 commit comments

Comments
 (0)