File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 5353 - name : Run
5454 run : tox
5555
56+ diffcov :
57+ runs-on : ubuntu-latest
58+ steps :
59+ - uses : actions/checkout@v3
60+ with :
61+ fetch-depth : 0
62+ - name : Setup Python
63+ uses : actions/setup-python@v4
64+ with :
65+ python-version : 3.x
66+ - name : Install tox
67+ run : |
68+ python -m pip install tox
69+ - name : Evaluate coverage
70+ run : tox
71+ env :
72+ TOXENV : diffcov
73+
5674 docs :
5775 runs-on : ubuntu-latest
5876 env :
Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ usedevelop = True
88extras =
99 testing
1010
11+ [testenv:diffcov]
12+ deps =
13+ diff-cover
14+ commands =
15+ pytest {posargs} --cov-report xml
16+ diff-cover coverage.xml --compare-branch =origin/main --html-report diffcov.html
17+ diff-cover coverage.xml --compare-branch =origin/main --fail-under =100
18+
1119[testenv:docs]
1220extras =
1321 docs
You can’t perform that action at this time.
0 commit comments