Skip to content

Commit

Permalink
run e2e tests after all other checks have passed
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Sep 15, 2023
1 parent 2414673 commit edb40e2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
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:
python_version: ["3.10"]
timeout-minutes: 10

steps:
- name: Wait for pytest and pre-commit to succeed
uses: lewagon/[email protected]
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

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
pre-commit:
name: pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
test:
name: PyTest
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down

0 comments on commit edb40e2

Please sign in to comment.