File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 29
29
node_version : ["20", "22"]
30
30
steps :
31
31
- uses : actions/checkout@v4
32
+ with :
33
+ fetch-depth : 0 # Fetch all history for diff-cover
32
34
- name : Install uv
33
35
uses : astral-sh/setup-uv@v6
34
36
with :
@@ -61,11 +63,12 @@ jobs:
61
63
run : black . --check --verbose
62
64
- name : Run Python tests
63
65
if : runner.os != 'Windows'
64
- run : pytest -s -vv --cov --cov-report=xml --cov-fail-under=90
66
+ run : pytest -s -vv --cov --cov-report=xml --cov-fail-under=89
65
67
- name : Check diff coverage
66
68
if : runner.os != 'Windows' && github.event_name == 'pull_request'
67
69
run : |
68
- diff-cover coverage.xml --fail-under=90
70
+ git fetch origin main:refs/remotes/origin/main
71
+ diff-cover coverage.xml --compare-branch=origin/main --fail-under=90
69
72
- name : Run E2E tests with Playwright
70
73
id : e2e
71
74
if : runner.os != 'Windows'
You can’t perform that action at this time.
0 commit comments