Disable coverage on pypy tests (#3777)

The pypy tests are reeeeaaally slow. Maybe this will help.
This commit is contained in:
Shantanu 2023-07-10 08:37:12 -07:00 committed by GitHub
parent ad3724b7ff
commit 138769aa27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View File

@ -58,7 +58,9 @@ jobs:
- name: Upload coverage to Coveralls - name: Upload coverage to Coveralls
# Upload coverage if we are on the main repository and # Upload coverage if we are on the main repository and
# we're running on Linux (this action only supports Linux) # we're running on Linux (this action only supports Linux)
if: github.repository == 'psf/black' && matrix.os == 'ubuntu-latest' if:
github.repository == 'psf/black' && matrix.os == 'ubuntu-latest' &&
!startsWith(matrix.python-version, 'pypy')
uses: AndreMiras/coveralls-python-action@v20201129 uses: AndreMiras/coveralls-python-action@v20201129
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -39,19 +39,15 @@ deps =
; remove this when pypy releases the bugfix ; remove this when pypy releases the bugfix
commands = commands =
pip install -e .[d] pip install -e .[d]
coverage erase
pytest tests \ pytest tests \
--run-optional no_jupyter \ --run-optional no_jupyter \
!ci: --numprocesses auto \ !ci: --numprocesses auto \
ci: --numprocesses 1 \ ci: --numprocesses 1
--cov {posargs}
pip install -e .[jupyter] pip install -e .[jupyter]
pytest tests --run-optional jupyter \ pytest tests --run-optional jupyter \
-m jupyter \ -m jupyter \
!ci: --numprocesses auto \ !ci: --numprocesses auto \
ci: --numprocesses 1 \ ci: --numprocesses 1
--cov --cov-append {posargs}
coverage report
[testenv:{,ci-}311] [testenv:{,ci-}311]
setenv = setenv =