From edb40e2f2ca246d1818af8c326b02a09bb14859a Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Thu, 14 Sep 2023 22:59:28 -0400 Subject: [PATCH] run e2e tests after all other checks have passed --- .github/workflows/e2e.yml | 12 +++++++++++- .github/workflows/pre-commit.yml | 1 + .github/workflows/tests.yml | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 09c26c2a67..c5845127e4 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -1,10 +1,12 @@ name: E2E on: + pull_request: workflow_dispatch: jobs: e2e-test: - runs-on: [self-hosted, gpu] + name: E2E Tests + runs-on: [self-hosted, gpu, e2e] strategy: fail-fast: false matrix: @@ -12,6 +14,14 @@ jobs: timeout-minutes: 10 steps: + - name: Wait for pytest and pre-commit to succeed + uses: lewagon/wait-on-check-action@v1.3.1 + with: + ref: ${{ github.ref }} + running-workflow-name: 'E2E Tests' + repo-token: ${{ secrets.GITHUB_TOKEN }} + wait-interval: 10 + - name: Check out repository code uses: actions/checkout@v3 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 626edc6868..b5bc495788 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -6,6 +6,7 @@ on: jobs: pre-commit: + name: pre-commit runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a2ee392626..8227b48b8f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,6 +5,7 @@ on: jobs: test: + name: PyTest runs-on: ubuntu-latest strategy: fail-fast: false