Added --data-file to coverage command.

This commit is contained in:
Patrick Lehmann
2022-11-03 19:16:25 +01:00
parent 81c1f12836
commit 91ea5db1ce

View File

@@ -132,11 +132,11 @@ jobs:
python -m pytest -rA --cov=. $PYCOV_ARGS ${{ inputs.unittest_directory }} --color=yes python -m pytest -rA --cov=. $PYCOV_ARGS ${{ inputs.unittest_directory }} --color=yes
- name: Convert to cobertura format - name: Convert to cobertura format
run: coverage xml run: coverage xml --data-file=${{ inputs.tests_directory }}/.coverage
- name: Convert to HTML format - name: Convert to HTML format
run: | run: |
coverage html -d ${{ steps.getVariables.outputs.coverage_report_html_directory }} coverage html --data-file=${{ inputs.tests_directory }}/.coverage -d ${{ steps.getVariables.outputs.coverage_report_html_directory }}
rm ${{ steps.getVariables.outputs.coverage_report_html_directory }}/.gitignore rm ${{ steps.getVariables.outputs.coverage_report_html_directory }}/.gitignore
- name: 📤 Upload 'Coverage Report' artifact - name: 📤 Upload 'Coverage Report' artifact