File tree 2 files changed +4
-12
lines changed
2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 65
65
if : needs.run-determination.outputs.result == 'true'
66
66
runs-on : ubuntu-latest
67
67
68
- env :
69
- COVERAGE_DATA_FILENAME : coverage.xml
70
-
71
68
steps :
72
69
- name : Checkout repository
73
70
uses : actions/checkout@v4
98
95
- name : Display code coverage report
99
96
run : task python:coverage-report
100
97
101
- # codecov/codecov-action only makes the conversion if the `coverage` package is installed in the global runner
102
- # environment
103
- - name : Convert code coverage report to format required by Codecov
104
- run : |
105
- poetry run \
106
- coverage xml \
107
- -o "${{ github.workspace }}/${{ env.COVERAGE_DATA_FILENAME }}"
108
-
109
98
# A token is used to avoid intermittent spurious job failures caused by rate limiting.
110
99
- name : Set up Codecov upload token
111
100
run : |
@@ -124,5 +113,5 @@ jobs:
124
113
uses : codecov/codecov-action@v3
125
114
with :
126
115
fail_ci_if_error : true
127
- file : ${{ env.COVERAGE_DATA_FILENAME }}
116
+ file : coverage.xml
128
117
token : ${{ env.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change @@ -439,6 +439,9 @@ tasks:
439
439
--source="{{.PYTHON_PROJECT_PATH}}" \
440
440
--module \
441
441
pytest "{{.PYTHON_PROJECT_PATH}}/tests"
442
+ - |
443
+ poetry run \
444
+ coverage xml
442
445
443
446
# Make a temporary file named according to the passed TEMPLATE variable and print the path passed to stdout
444
447
# 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