Skip to content

Commit 2528d27

Browse files
committed
ci: improved the workflow to see better code coverage results
1 parent 2745eaa commit 2528d27

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@ jobs:
4343
- name: Run Tests
4444
run: poetry run pytest --junitxml=build/reports/junit.xml
4545

46-
- name: Upload Results
47-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
46+
- name: Generate coverage report
47+
uses: mridang/action-test-reporter@v1.2.5
4848
if: always()
4949
with:
50-
name: test-results
51-
path: build/reports/junit.xml
50+
github-token: ${{ secrets.GITHUB_TOKEN }}
51+
coverage-file: 'build/coverage/clover.xml'
5252

53-
- name: Upload Coverage
53+
- name: Upload Results
5454
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5555
if: always()
5656
with:
57-
name: test-coverage
58-
path: build/coverage/clover.xml
57+
name: test-results
58+
path: build/reports/junit.xml
5959

6060
- name: Generate Report
6161
if: ${{ always() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}

0 commit comments

Comments
 (0)