File tree 1 file changed +9
-11
lines changed
1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -76,26 +76,24 @@ jobs:
76
76
- uses : actions/checkout@v4
77
77
- uses : actions/setup-python@v5
78
78
with :
79
- python-version : " 3.12"
80
- - name : Download pre-built packages
81
- uses : actions/download-artifact@v4
82
- with :
83
- name : Packages
84
- path : dist
85
- - run : tar xf dist/*.tar.gz --strip-components=1
86
- - name : Download coverage data
87
- uses : actions/download-artifact@v4
79
+ python-version-file : .python-version-default
80
+ - uses : hynek/setup-cached-uv@v2
81
+ - run : uv pip install --system --upgrade coverage[toml]
82
+ - uses : actions/download-artifact@v4
88
83
with :
89
84
pattern : coverage-data-*
90
85
merge-multiple : true
91
86
92
- - name : Combine coverage and fail under 100%
87
+ - name : Combine coverage & fail if it's < 100%.
93
88
run : |
94
- python -Im pip install --upgrade "coverage[toml]"
89
+ uv tool install 'coverage[toml]'
90
+
95
91
coverage combine
96
92
coverage html --skip-covered --skip-empty
93
+
97
94
# Report and write to summary.
98
95
coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
96
+
99
97
# Report again and fail if under 100%.
100
98
coverage report --fail-under=100
101
99
You can’t perform that action at this time.
0 commit comments