Skip to content

Commit 138769a

Browse files
authored
Disable coverage on pypy tests (psf#3777)
The pypy tests are reeeeaaally slow. Maybe this will help.
1 parent ad3724b commit 138769a

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/test.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ jobs:
5858
- name: Upload coverage to Coveralls
5959
# Upload coverage if we are on the main repository and
6060
# we're running on Linux (this action only supports Linux)
61-
if: github.repository == 'psf/black' && matrix.os == 'ubuntu-latest'
61+
if:
62+
github.repository == 'psf/black' && matrix.os == 'ubuntu-latest' &&
63+
!startsWith(matrix.python-version, 'pypy')
6264
uses: AndreMiras/coveralls-python-action@v20201129
6365
with:
6466
github-token: ${{ secrets.GITHUB_TOKEN }}

tox.ini

+2-6
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,15 @@ deps =
3939
; remove this when pypy releases the bugfix
4040
commands =
4141
pip install -e .[d]
42-
coverage erase
4342
pytest tests \
4443
--run-optional no_jupyter \
4544
!ci: --numprocesses auto \
46-
ci: --numprocesses 1 \
47-
--cov {posargs}
45+
ci: --numprocesses 1
4846
pip install -e .[jupyter]
4947
pytest tests --run-optional jupyter \
5048
-m jupyter \
5149
!ci: --numprocesses auto \
52-
ci: --numprocesses 1 \
53-
--cov --cov-append {posargs}
54-
coverage report
50+
ci: --numprocesses 1
5551

5652
[testenv:{,ci-}311]
5753
setenv =

0 commit comments

Comments
 (0)