Skip to content

Commit 9888ffc

Browse files
authored
chore: skip integration tests on forks (#363)
GitHub provides no reasonable and secure way to run integration tests against PRs from forks. This PR adjusts the CI builds to skip integration tests on PRs from forks and otherwise runs the entire test suite for internal PRs. In addition, integration tests will run on main regardless to catch any regressions.
1 parent ba434e7 commit 9888ffc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ jobs:
9292
integration:
9393
name: integration tests
9494
runs-on: [self-hosted, linux, x64]
95+
# run integration tests on all builds except pull requests from forks or
96+
# dependabot
97+
if: |
98+
github.event_name != 'pull_request' ||
99+
(github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]')
95100
strategy:
96101
matrix:
97102
python-version: ["3.8", "3.12"]

0 commit comments

Comments
 (0)