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 97b9a5a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,19 @@ 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:
name: .coverage
- run: coverage xml
- run: diff-cover coverage.xml --compare-branch origin/${{ github.base_ref }} --markdown-report $GITHUB_STEP_SUMMARY

0 comments on commit 97b9a5a

Please sign in to comment.