Skip to content

Commit

Permalink
Generate coverage HTML report and upload as GitHub Actions artifact a…
Browse files Browse the repository at this point in the history
…nd summary
  • Loading branch information
laymonage committed Aug 2, 2023
1 parent 3a38ce0 commit 6fed2c8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,17 @@ jobs:
- name: Combine coverage data
run: |
coverage combine
coverage report -m --skip-covered
- name: Generate coverage report
run: |
coverage report -m --skip-covered --skip-empty | sed 's/^/ /' >> $GITHUB_STEP_SUMMARY
coverage html --skip-covered --skip-empty
- name: Upload HTML report as artifact
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: coverage_html_report

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 6fed2c8

Please sign in to comment.