Skip to content

Commit

Permalink
πŸ’š ci: combine coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
ljnsn committed Oct 12, 2024
1 parent c287bb3 commit 4e1ea04
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down

0 comments on commit 4e1ea04

Please sign in to comment.