File tree 3 files changed +5
-12
lines changed
3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 72
72
permissions :
73
73
contents : read
74
74
75
- env :
76
- COVERAGE_DATA_FILENAME : coverage.xml
77
-
78
75
steps :
79
76
- name : Checkout repository
80
77
uses : actions/checkout@v4
@@ -102,14 +99,6 @@ jobs:
102
99
- name : Display code coverage report
103
100
run : task python:coverage-report
104
101
105
- # codecov/codecov-action only makes the conversion if the `coverage` package is installed in the global runner
106
- # environment
107
- - name : Convert code coverage report to format required by Codecov
108
- run : |
109
- poetry run \
110
- coverage xml \
111
- -o "${{ github.workspace }}/${{ env.COVERAGE_DATA_FILENAME }}"
112
-
113
102
# A token is used to avoid intermittent spurious job failures caused by rate limiting.
114
103
- name : Set up Codecov upload token
115
104
run : |
@@ -128,5 +117,5 @@ jobs:
128
117
uses : codecov/codecov-action@v3
129
118
with :
130
119
fail_ci_if_error : true
131
- file : ${{ env.COVERAGE_DATA_FILENAME }}
120
+ file : coverage.xml
132
121
token : ${{ env.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 1
1
/node_modules /
2
2
__pycache__ /
3
3
.coverage
4
+ /coverage.xml
Original file line number Diff line number Diff line change @@ -272,6 +272,9 @@ tasks:
272
272
--source="{{.PYTHON_PROJECT_PATH}}" \
273
273
--module \
274
274
pytest "{{.PYTHON_PROJECT_PATH}}/tests"
275
+ - |
276
+ poetry run \
277
+ coverage xml
275
278
276
279
# Make a temporary file named according to the passed TEMPLATE variable and print the path passed to stdout
277
280
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/windows-task/Taskfile.yml
You can’t perform that action at this time.
0 commit comments