Skip to content

Commit ad29c0a

Browse files
committed
Disable coverage on PyPy
Currently, CI jobs running on PyPy are (painfully) slow. This seems to be a well know side effect of enabling coverage. The change proposed here is to disable coverage on PyPy for both Windows and MacOS (which seem to be very slow). Coverage for PyPy on Ubuntu is preserved because, while being slower than CPython, it is still OK-ish. Hopefully tests running on PyPy/Ubuntu will include most of PyPy's specific corner cases.
1 parent 5b2b20d commit ad29c0a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ jobs:
3838
- name: Install tox
3939
run: |
4040
python -m pip install tox
41+
- name: Disable coverage on PyPy
42+
# Coverage seems to slow things down on PyPy (ubuntu is still OK-ish)
43+
if: contains(matrix.python, 'pypy') && matrix.platform != 'ubuntu-latest'
44+
shell: bash
45+
run: echo 'PYTEST_ADDOPTS=-p no:cov' >> $GITHUB_ENV
4146
- name: Run tests
4247
run: tox -- --cov-report xml
4348
- name: Publish coverage

0 commit comments

Comments
 (0)