Skip to content

Commit

Permalink
use token
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jun 27, 2024
1 parent 542aba7 commit 67b44ce
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
tags:
- "*"
pull_request_target:
pull_request:
schedule:
# Weekly Monday 9AM build
# * is a special character in YAML so you have to quote this string
Expand Down Expand Up @@ -42,9 +42,10 @@ jobs:
envs: |
- linux: py311-jwst-xdist
- linux: py311-romancal-xdist
report_diff_coverage:
report_diff_test_coverage:
needs: [ test ]
if: github.event_name == 'pull_request_target'
if: always() && github.event_name == 'pull_request'
name: report diff test coverage
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
Expand All @@ -59,6 +60,8 @@ jobs:
with:
pattern: ".coverage*"
merge-multiple: true
- run: |
[ "$(ls -A .coverage*)" ] && exit 0 || exit 1
- run: coverage xml
- run: diff-cover coverage.xml --compare-branch origin/${{ github.base_ref }} --markdown-report diff_coverage.md
- run: cat diff_coverage.md >> $GITHUB_STEP_SUMMARY
Expand All @@ -67,3 +70,4 @@ jobs:
filePath: diff_coverage.md
pr_number: ${{ github.event.number }}
comment_tag: diff-coverage
GITHUB_TOKEN: ${{ secrets.PULL_REQUEST_COMMENTER_TOKEN }}

0 comments on commit 67b44ce

Please sign in to comment.