From 11526e8fe28d7699f8a7bf115d7920f95f66ea8e Mon Sep 17 00:00:00 2001 From: Justin Law <81255462+justinthelaw@users.noreply.github.com> Date: Tue, 10 Sep 2024 08:58:40 -0400 Subject: [PATCH] chore(test): prevent E2E tests from running in draft PRs (#1015) --- .github/workflows/e2e-registry1-weekly.yaml | 1 + .github/workflows/pytest.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/e2e-registry1-weekly.yaml b/.github/workflows/e2e-registry1-weekly.yaml index f2ace37d4..352501b81 100644 --- a/.github/workflows/e2e-registry1-weekly.yaml +++ b/.github/workflows/e2e-registry1-weekly.yaml @@ -27,6 +27,7 @@ jobs: test-flavors: runs-on: ai-ubuntu-big-boy-8-core name: e2e_registry1_weekly + if: ${{ !github.event.pull_request.draft }} permissions: contents: read diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 08ff0645f..ae84841ef 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -76,6 +76,7 @@ jobs: integration: runs-on: ai-ubuntu-big-boy-8-core + if: ${{ !github.event.pull_request.draft }} # If basic unit tests fail, do not run this job needs: pytest