Skip to content

Commit

Permalink
Disable coverage on pypy tests (#3777)
Browse files Browse the repository at this point in the history
The pypy tests are reeeeaaally slow. Maybe this will help.
  • Loading branch information
hauntsaninja authored Jul 10, 2023
1 parent ad3724b commit 138769a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ jobs:
- name: Upload coverage to Coveralls
# Upload coverage if we are on the main repository and
# 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
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 2 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,15 @@ deps =
; remove this when pypy releases the bugfix
commands =
pip install -e .[d]
coverage erase
pytest tests \
--run-optional no_jupyter \
!ci: --numprocesses auto \
ci: --numprocesses 1 \
--cov {posargs}
ci: --numprocesses 1
pip install -e .[jupyter]
pytest tests --run-optional jupyter \
-m jupyter \
!ci: --numprocesses auto \
ci: --numprocesses 1 \
--cov --cov-append {posargs}
coverage report
ci: --numprocesses 1

[testenv:{,ci-}311]
setenv =
Expand Down

0 comments on commit 138769a

Please sign in to comment.