Skip to content

Commit

Permalink
Merge pull request #391 from NeuroML/feat/coverage-comment
Browse files Browse the repository at this point in the history
ci: update comment bit to also work on PRs from forks
  • Loading branch information
sanjayankur31 authored Jun 10, 2024
2 parents a4693ba + 068cf6a commit 6d3acbc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- development
- experimental
- 'test*'
pull_request:
pull_request_target:
branches:
- master
- development
Expand All @@ -18,6 +18,8 @@ jobs:
build:

runs-on: ubuntu-latest
permissions:
pull-requests: write
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
Expand Down Expand Up @@ -67,7 +69,7 @@ jobs:

- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: ${{ github.event_name == 'pull_request' && matrix.python-version == '3.12' }}
if: ${{ github.event_name == 'pull_request_target' && matrix.python-version == '3.12' }}
with:
recreate: true
path: code-coverage-results.md

0 comments on commit 6d3acbc

Please sign in to comment.