Skip to content

Commit

Permalink
add pull request coverage diff report
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jun 25, 2024
1 parent f17f76d commit 5832407
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,14 @@ jobs:
envs: |
- linux: py311-jwst-xdist
- linux: py311-romancal-xdist
report_coverage:
needs: [ test ]
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- run: pip install diff-cover coverage
- uses: actions/[email protected]
- uses: actions/[email protected]
- run: coverage xml
- run: diff-cover coverage.xml --compare-branch ${{ github.base_ref }} --markdown-report $GITHUB_STEP_SUMMARY

0 comments on commit 5832407

Please sign in to comment.