From 91ea5db1cead92ce18ad4cf6a8f33e51468472c2 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Thu, 3 Nov 2022 19:16:25 +0100 Subject: [PATCH] Added --data-file to coverage command. --- .github/workflows/CoverageCollection.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CoverageCollection.yml b/.github/workflows/CoverageCollection.yml index 074c0f0..0c2c9e5 100644 --- a/.github/workflows/CoverageCollection.yml +++ b/.github/workflows/CoverageCollection.yml @@ -132,11 +132,11 @@ jobs: python -m pytest -rA --cov=. $PYCOV_ARGS ${{ inputs.unittest_directory }} --color=yes - name: Convert to cobertura format - run: coverage xml + run: coverage xml --data-file=${{ inputs.tests_directory }}/.coverage - name: Convert to HTML format 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 - name: 📤 Upload 'Coverage Report' artifact