Skip to content

Commit

Permalink
add coverage to envs
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jun 26, 2024
1 parent 246e184 commit ac9c104
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ jobs:
with:
envs: |
- linux: py310-oldestdeps-cov-xdist
coverage: github
- linux: py310-xdist
- macos: py311-xdist
- linux: py311-cov-xdist
coverage: github
- linux: py311-downstreamdeps-cov-xdist
coverage: github
- linux: py312-nolegacypath-cov-xdist
Expand Down Expand Up @@ -58,11 +60,10 @@ jobs:
pattern: ".coverage*"
merge-multiple: true
- run: coverage xml
- run: diff-cover coverage.xml --compare-branch origin/${{ github.base_ref }} --markdown-report $GITHUB_STEP_SUMMARY
- run: echo "report=$(cat $GITHUB_STEP_SUMMARY)" >> $GITHUB_OUTPUT
id: diff-coverage-report
- run: diff-cover coverage.xml --compare-branch origin/${{ github.base_ref }} --markdown-report diff_coverage.md
- run: cat diff_coverage.md >> $GITHUB_STEP_SUMMARY
- uses: thollander/actions-comment-pull-request@v2.5.0
with:
message: ${{ steps.diff-coverage-report.outputs.report }}
filePath: diff_coverage.md
pr_number: ${{ github.event.number }}
comment_tag: diff-coverage

0 comments on commit ac9c104

Please sign in to comment.