Skip to content

Commit 8dc042e

Browse files
committed
Add diff-cover step to python test
1 parent 6acc94a commit 8dc042e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/python-test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ jobs:
6262
- name: Run Python tests
6363
if: runner.os != 'Windows'
6464
run: pytest -s -vv --cov --cov-fail-under=89
65+
- name: Check diff coverage
66+
if: runner.os != 'Windows' && github.event_name == 'pull_request'
67+
run: |
68+
diff-cover coverage.xml --fail-under=90
6569
- name: Run E2E tests with Playwright
6670
id: e2e
6771
if: runner.os != 'Windows'

0 commit comments

Comments
 (0)