Skip to content

Commit

Permalink
Export coverage report to workflow summary
Browse files Browse the repository at this point in the history
  • Loading branch information
bastantoine committed Jun 20, 2024
1 parent f76e7df commit 31129a9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ jobs:
- name: Test with pytest
run: |
poetry run coverage run -m pytest -v -s
- name: Generate Coverage Report
- name: Generate coverage report
run: |
poetry run coverage report -m
- name: Export coverage report
run: |
poetry run coverage xml -o report.xml
- name: Code Coverage Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: report.xml
format: markdown
indicators: true
output: both
- name: Write summary
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY

0 comments on commit 31129a9

Please sign in to comment.