Skip to content

Commit 70fbcda

Browse files
committed
Refactor coverage report steps in OnPush workflow to merge reports before generating final coverage report
1 parent 2f41fb2 commit 70fbcda

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/OnPush.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,19 @@ jobs:
4949
include_passed: true
5050
check_name: Pytest Test Report (${{ matrix.python-version }})
5151

52+
- name: Merge coverage reports
53+
if: success() || failure()
54+
uses: danielpalme/ReportGenerator-GitHub-Action@v5
55+
with:
56+
reports: tests_reports/**/coverage.xml
57+
targetdir: coverage-report
58+
reporttypes: "cobertura"
59+
5260
- name: cobertura-report
5361
if: success() || failure()
5462
uses: 5monkeys/cobertura-action@v14
5563
with:
56-
path: tests_reports/**/coverage.xml
64+
path: coverage-report/Cobertura.xml
5765
minimum_coverage: 90
5866
fail_below_threshold: true
5967
report_name: Coverage Report (${{ matrix.python-version }})

0 commit comments

Comments
 (0)