From 4e1ea04bfa63acb99b1e1694efeb4575825dc97a Mon Sep 17 00:00:00 2001 From: ljnsn Date: Sat, 12 Oct 2024 16:31:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20ci:=20combine=20coverage=20repor?= =?UTF-8?q?ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pythonpackage.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 0856f55..07df8ff 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -70,7 +70,8 @@ jobs: uses: actions/upload-artifact@v4 with: name: coverage-${{ matrix.platform }}-${{ matrix.python-version }} - path: reports/coverage.xml + path: reports/.coverage + include-hidden-files: true coveralls-finish: needs: [python-test] @@ -92,6 +93,22 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.10" + - name: Install coverage + run: pip install coverage + - name: Download artifacts + uses: actions/download-artifact@v4 + with: + path: reports + pattern: coverage-* + merge-multiple: true + - name: Combine coverage + run: | + coverage combine reports + coverage xml - name: Generate sonar properties run: | cat << EOF > sonar-project.properties