Skip to content

Commit 7d45b57

Browse files
committed
fix: ci
1 parent 783b310 commit 7d45b57

File tree

1 file changed

+1
-42
lines changed

1 file changed

+1
-42
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -53,46 +53,5 @@ jobs:
5353
uses: actions/upload-artifact@v4
5454
with:
5555
name: coverage-data-${{ matrix.python-version }}
56-
path: '${{ github.workspace }}/.coverage.*'
57-
include-hidden-files: true
58-
if-no-files-found: error
56+
token: ${{ secrets.CODECOV_TOKEN }}
5957

60-
61-
coverage:
62-
name: Coverage
63-
runs-on: ubuntu-24.04
64-
needs: build
65-
steps:
66-
- uses: actions/checkout@v4
67-
68-
- uses: actions/setup-python@v5
69-
with:
70-
python-version: '3.12'
71-
72-
- name: Install uv
73-
uses: astral-sh/setup-uv@v3
74-
75-
- name: Install dependencies
76-
run: uv pip install --system coverage[toml]
77-
78-
- name: Download data
79-
uses: actions/download-artifact@v4
80-
with:
81-
path: ${{ github.workspace }}
82-
pattern: coverage-data-*
83-
merge-multiple: true
84-
85-
- name: Combine coverage and fail if it's <100%
86-
run: |
87-
python -m coverage combine
88-
python -m coverage html --skip-covered --skip-empty
89-
python -m coverage report --fail-under=90
90-
echo "## Coverage summary" >> $GITHUB_STEP_SUMMARY
91-
python -m coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
92-
93-
- name: Upload HTML report
94-
if: ${{ failure() }}
95-
uses: actions/upload-artifact@v4
96-
with:
97-
name: html-report
98-
path: htmlcov

0 commit comments

Comments
 (0)