Skip to content

Commit 1f93daa

Browse files
get codecov too
1 parent 5d03631 commit 1f93daa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ jobs:
7979
- name: Report core project coverage with Codecov
8080
if: >-
8181
github.event_name != 'schedule' &&
82-
matrix.os == 'ubuntu-latest'
82+
matrix.os == 'ubuntu-latest' &&
83+
github.repository == 'scikit-hep/pyhf'
8384
uses: codecov/codecov-action@v5
8485
with:
8586
fail_ci_if_error: true
@@ -97,7 +98,7 @@ jobs:
9798
coverage xml
9899
99100
- name: Report contrib coverage with Codecov
100-
if: github.event_name != 'schedule' && matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
101+
if: github.event_name != 'schedule' && matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' && github.repository == 'scikit-hep/pyhf'
101102
uses: codecov/codecov-action@v5
102103
with:
103104
fail_ci_if_error: true
@@ -117,7 +118,7 @@ jobs:
117118
coverage xml --data-file=.coverage-doctest -o doctest-coverage.xml
118119
119120
- name: Report doctest coverage with Codecov
120-
if: github.event_name != 'schedule' && matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
121+
if: github.event_name != 'schedule' && matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' && github.repository == 'scikit-hep/pyhf'
121122
uses: codecov/codecov-action@v5
122123
with:
123124
fail_ci_if_error: true

0 commit comments

Comments
 (0)