From 0f8d6d65bc20722bef0332c497373529e41998cb Mon Sep 17 00:00:00 2001 From: Eno Compton Date: Wed, 14 Aug 2024 11:20:59 -0600 Subject: [PATCH] chore: skip integration tests on forks 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. --- .github/workflows/tests.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index c8c0611a..9a6d6a7a 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -92,6 +92,11 @@ jobs: integration: name: integration tests runs-on: [self-hosted, linux, x64] + # run integration tests on all builds except pull requests from forks or + # dependabot + if: | + github.event_name != 'pull_request' || + (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') strategy: matrix: python-version: ["3.8", "3.12"]