Skip to content

Commit

Permalink
Run diffcov in main testenv
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Sep 10, 2023
1 parent 8e7b968 commit 76e169b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -75,6 +75,9 @@ jobs:
python -m pip install tox
- name: Run
run: tox
- name: Check diff coverage
if: ${{ matrix.python == '3.11' && matrix.platform == 'ubuntu-latest' }}
run: tox -e diffcov

docs:
runs-on: ubuntu-latest
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Expand Up @@ -3,7 +3,7 @@ deps =
setenv =
PYTHONWARNDEFAULTENCODING = 1
commands =
pytest {posargs}
pytest {posargs} --cov-report xml
passenv =
HOME
usedevelop = True
Expand All @@ -24,7 +24,6 @@ commands =
deps =
diff-cover
commands =
pytest {posargs} --cov-report xml
diff-cover coverage.xml --compare-branch=origin/main --html-report diffcov.html
diff-cover coverage.xml --compare-branch=origin/main --fail-under=100

Expand Down

0 comments on commit 76e169b

Please sign in to comment.