File tree Expand file tree Collapse file tree 1 file changed +1
-42
lines changed Expand file tree Collapse file tree 1 file changed +1
-42
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments