Skip to content

Commit 39e0a7e

Browse files
authored
Merge pull request #131 from nathan-weinberg/e2e-trigger
e2e: only run PR job if certain files are changed
2 parents 83f9d95 + 7e405b3 commit 39e0a7e

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/mergify.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pull_request_rules:
2828
# e2e workflow
2929
- or:
3030
- and:
31+
# note this should match the triggering criteria in 'e2e-nvidia-t4-x1.yml'
3132
- check-success=e2e-workflow-complete
3233
- or:
3334
- files~=\.py$

.github/workflows/e2e-nvidia-t4-x1.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
name: E2E (NVIDIA Tesla T4 x1)
44

55
on:
6+
# run against every merge commit to 'main' and release branches
67
push:
78
branches:
89
- main
910
- release-*
11+
# only run on PRs that touch certain regex paths
1012
pull_request_target:
1113
types:
1214
- opened
@@ -15,6 +17,12 @@ on:
1517
branches:
1618
- main
1719
- release-*
20+
paths:
21+
# note this should match the merging criteria in 'mergify.yml'
22+
- '**.py'
23+
- 'pyproject.toml'
24+
- 'requirements**.txt'
25+
- '.github/workflows/e2e-nvidia-t4-x1.yml' # This workflow
1826

1927
concurrency:
2028
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

0 commit comments

Comments
 (0)