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 0c03e6a commit fff3185
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,20 @@ jobs:
envs: |
- linux: py311-jwst-xdist
- linux: py311-romancal-xdist
report_diff_coverage:
needs: [ test ]
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
- run: pip install diff-cover coverage
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: pip install .
- uses: actions/download-artifact@v4
with:
pattern: "*coverage*"
merge-multiple: true
- run: coverage xml
- run: diff-cover coverage.xml --compare-branch origin/${{ github.base_ref }} --markdown-report $GITHUB_STEP_SUMMARY

0 comments on commit fff3185

Please sign in to comment.