File tree Expand file tree Collapse file tree 1 file changed +6
-31
lines changed Expand file tree Collapse file tree 1 file changed +6
-31
lines changed Original file line number Diff line number Diff line change @@ -33,39 +33,14 @@ jobs:
33
33
- name : " Run tox targets for ${{ matrix.python-version }}"
34
34
run : " python -m tox -- -v"
35
35
36
- - name : " Upload coverage data"
37
- uses : " actions/upload-artifact@v3"
38
- with :
39
- name : coverage-data
40
- path : .coverage.*
41
- if-no-files-found : ignore
42
-
43
- coverage :
44
- name : " Coverage Report"
45
- runs-on : " ubuntu-latest"
46
- needs : " tests"
47
-
48
- steps :
49
- - uses : " actions/checkout@v4"
50
- - uses : " actions/setup-python@v5"
51
- with :
52
- # Use latest Python, so it understands all syntax.
53
- python-version : " 3.12"
54
-
55
- - run : " python -m pip install --upgrade coverage[toml]"
56
-
57
- - uses : " actions/download-artifact@v3"
58
- with :
59
- name : " coverage-data"
60
-
61
- - name : " Combine coverage"
36
+ - name : " Convert coverage"
62
37
run : |
63
38
python -m coverage combine
64
- python -m coverage html
65
39
python -m coverage report
40
+ python -m coverage xml
66
41
67
- - name : " Upload HTML report "
68
- uses : " actions/upload-artifact@v3 "
42
+ - name : " Upload coverage to Codecov "
43
+ uses : codecov/codecov-action@v4
69
44
with :
70
- name : " html-report "
71
- path : " htmlcov "
45
+ fail_ci_if_error : true
46
+ token : ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments