Skip to content

Commit 8caf72d

Browse files
committed
Switch back to the original version of the coverage action.
1 parent ef82dee commit 8caf72d

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/ci.yml

+9-11
Original file line numberDiff line numberDiff line change
@@ -76,26 +76,24 @@ jobs:
7676
- uses: actions/checkout@v4
7777
- uses: actions/setup-python@v5
7878
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
8883
with:
8984
pattern: coverage-data-*
9085
merge-multiple: true
9186

92-
- name: Combine coverage and fail under 100%
87+
- name: Combine coverage & fail if it's <100%.
9388
run: |
94-
python -Im pip install --upgrade "coverage[toml]"
89+
uv tool install 'coverage[toml]'
90+
9591
coverage combine
9692
coverage html --skip-covered --skip-empty
93+
9794
# Report and write to summary.
9895
coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
96+
9997
# Report again and fail if under 100%.
10098
coverage report --fail-under=100
10199

0 commit comments

Comments
 (0)