Skip to content

Commit 2967f28

Browse files
committed
ci: revisit coverage reporting
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 9373afc commit 2967f28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/python.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ jobs:
134134
- name: Run tox
135135
run: poetry run tox run -e py${{ matrix.toxenv-factors }} -s false
136136
- name: Generate coverage reports
137+
if: ${{ failure() || success() }}
137138
shell: bash
138139
run: |
139140
set -eux
140-
poetry run coverage report
141-
poetry run coverage xml -o "$REPORTS_DIR/coverage.${{ matrix.os }}_py${{ matrix.python-version }}_${{ matrix.toxenv-factors }}.cobertura.xml"
142-
# poetry run coverage lcov -o "$REPORTS_DIR/coverage.${{ matrix.os }}_py${{ matrix.python-version }}_${{ matrix.toxenv-factors }}.lcov.xml"
141+
poetry run coverage report -m
142+
poetry run coverage xml -o '${{ env.REPORTS_DIR }}/coverage/${{ matrix.os }}_py${{ matrix.python-version }}_${{ matrix.toxenv-factors }}.cobertura.xml'
143143
- name: Artifact reports
144144
if: ${{ ! cancelled() }}
145145
# see https://github.com/actions/upload-artifact
@@ -169,7 +169,7 @@ jobs:
169169
uses: codacy/codacy-coverage-reporter-action@v1
170170
with:
171171
project-token: ${{ env.CODACY_PROJECT_TOKEN }}
172-
coverage-reports: ${{ env.REPORTS_DIR }}/coverage.*
172+
coverage-reports: ${{ env.REPORTS_DIR }}/coverage/*.cobertura.xml
173173

174174
examples:
175175
name: Examples E:${{ matrix.install-extras || '<none>' }}

0 commit comments

Comments
 (0)