Skip to content

Commit 614c828

Browse files
authored
GHA: skip codecov upload for dependabot (#3012)
Dependabot has no access to secrets and codecov upload will fail. https://docs.github.com/en/code-security/dependabot/troubleshooting-dependabot/troubleshooting-dependabot-on-github-actions
1 parent 76e1ad3 commit 614c828

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.github/workflows/test_benchmark_collection_models.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
--cov-append \
7171
7272
- name: Codecov Python
73-
if: github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev'
73+
if: (github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev') && github.actor != 'dependabot[bot]'
7474
uses: codecov/codecov-action@v5
7575
with:
7676
token: ${{ secrets.CODECOV_TOKEN }}
@@ -148,7 +148,7 @@ jobs:
148148
--cov-append
149149
150150
- name: Codecov Python
151-
if: github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev'
151+
if: (github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev') && github.actor != 'dependabot[bot]'
152152
uses: codecov/codecov-action@v5
153153
with:
154154
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/test_petab_sciml.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
--cov=amici tests/sciml/test_sciml.py
8484
8585
- name: Codecov
86-
if: github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev'
86+
if: (github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev') && github.actor != 'dependabot[bot]'
8787
uses: codecov/codecov-action@v5
8888
with:
8989
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/test_petab_test_suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
tests/petab_test_suite/
109109
110110
- name: Codecov
111-
if: github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev'
111+
if: (github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev') && github.actor != 'dependabot[bot]'
112112
uses: codecov/codecov-action@v5
113113
with:
114114
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/test_python_cplusplus.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
${AMICI_DIR}/python/tests/test_splines.py
8282
8383
- name: Codecov Python
84-
if: github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev'
84+
if: (github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev') && github.actor != 'dependabot[bot]'
8585
uses: codecov/codecov-action@v5
8686
with:
8787
token: ${{ secrets.CODECOV_TOKEN }}
@@ -101,7 +101,7 @@ jobs:
101101
&& lcov -a coverage_cpp.info -a coverage_py.info -o coverage.info
102102
103103
- name: Codecov CPP
104-
if: github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev'
104+
if: (github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev') && github.actor != 'dependabot[bot]'
105105
uses: codecov/codecov-action@v5
106106
with:
107107
token: ${{ secrets.CODECOV_TOKEN }}
@@ -163,7 +163,7 @@ jobs:
163163
${AMICI_DIR}/python/tests/test_splines_short.py
164164
165165
- name: Codecov Python
166-
if: github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev'
166+
if: (github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev') && github.actor != 'dependabot[bot]'
167167
uses: codecov/codecov-action@v5
168168
with:
169169
token: ${{ secrets.CODECOV_TOKEN }}
@@ -183,7 +183,7 @@ jobs:
183183
&& lcov -a coverage_cpp.info -a coverage_py.info -o coverage.info
184184
185185
- name: Codecov CPP
186-
if: github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev'
186+
if: (github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev') && github.actor != 'dependabot[bot]'
187187
uses: codecov/codecov-action@v5
188188
with:
189189
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/test_sbml_semantic_test_suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
path: tests/sbml/amici-semantic-results
5454

5555
- name: Codecov SBMLSuite
56-
if: github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev'
56+
if: (github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev') && github.actor != 'dependabot[bot]'
5757
uses: codecov/codecov-action@v5
5858
with:
5959
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/test_sbml_semantic_test_suite_jax.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
path: tests/sbml/amici-semantic-results-jax
5151

5252
- name: Codecov SBMLSuiteJax
53-
if: github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev'
53+
if: (github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev') && github.actor != 'dependabot[bot]'
5454
uses: codecov/codecov-action@v5
5555
with:
5656
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)