Skip to content

Commit 52528c6

Browse files
committed
Exclude workflows when there are only UI changes
Prevent the following workflows when a PR contains changes that affect only the frontend: - Charmed Katib - E2E Test with darts-cnn-cifar10 - E2E Test with enas-cnn-cifar10 - E2E Test with mxnet-mnist - E2E Test with pytorch-mnist - E2E Test with simple-pbt - E2E Test with tf-mnist-with-summaries - Go Test - Lint YAML files - Publish AutoML Algorithm Images - Publish Katib Core Images - Publish Trial Images - Python Test - Shellcheck Signed-off-by: Orfeas Kourkakis <[email protected]>
1 parent 67f369b commit 52528c6

14 files changed

+66
-23
lines changed

.github/workflows/darts-cifar10-e2e-test.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: E2E Test with darts-cnn-cifar10
22
on:
3-
- pull_request
3+
pull_request:
4+
paths-ignore:
5+
- 'pkg/new-ui/v1beta1/frontend/**'
46

57
env:
68
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/enas-cifar10-e2e-test.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: E2E Test with enas-cnn-cifar10
22
on:
3-
- pull_request
3+
pull_request:
4+
paths-ignore:
5+
- 'pkg/new-ui/v1beta1/frontend/**'
46

57
env:
68
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: Lint YAML files
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
paths-ignore:
6+
- 'pkg/new-ui/v1beta1/frontend/**'
7+
pull_request:
8+
paths-ignore:
9+
- 'pkg/new-ui/v1beta1/frontend/**'
610

711
jobs:
812
lint:

.github/workflows/mxnet-mnist-e2e-test.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: E2E Test with mxnet-mnist
22
on:
3-
- pull_request
3+
pull_request:
4+
paths-ignore:
5+
- 'pkg/new-ui/v1beta1/frontend/**'
46

57
env:
68
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish-algorithm-images.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: Publish AutoML Algorithm Images
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
paths-ignore:
6+
- 'pkg/new-ui/v1beta1/frontend/**'
7+
pull_request:
8+
paths-ignore:
9+
- 'pkg/new-ui/v1beta1/frontend/**'
610

711
jobs:
812
algorithm:

.github/workflows/publish-core-images.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: Publish Katib Core Images
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
paths-ignore:
6+
- 'pkg/new-ui/v1beta1/frontend/**'
7+
pull_request:
8+
paths-ignore:
9+
- 'pkg/new-ui/v1beta1/frontend/**'
610

711
jobs:
812
core:
@@ -16,7 +20,6 @@ jobs:
1620
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
1721
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
1822

19-
2023
strategy:
2124
fail-fast: false
2225
matrix:

.github/workflows/publish-trial-images.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: Publish Trial Images
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
paths-ignore:
6+
- 'pkg/new-ui/v1beta1/frontend/**'
7+
pull_request:
8+
paths-ignore:
9+
- 'pkg/new-ui/v1beta1/frontend/**'
610

711
jobs:
812
trial:

.github/workflows/pytorch-mnist-e2e-test.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: E2E Test with pytorch-mnist
22
on:
3-
- pull_request
3+
pull_request:
4+
paths-ignore:
5+
- 'pkg/new-ui/v1beta1/frontend/**'
46

57
env:
68
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/simple-pbt-e2e-test.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: E2E Test with simple-pbt
22
on:
3-
- pull_request
3+
pull_request:
4+
paths-ignore:
5+
- 'pkg/new-ui/v1beta1/frontend/**'
46

57
env:
68
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test-charmed-katib.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: Charmed Katib
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
paths-ignore:
6+
- 'pkg/new-ui/v1beta1/frontend/**'
7+
pull_request:
8+
paths-ignore:
9+
- 'pkg/new-ui/v1beta1/frontend/**'
610

711
jobs:
812
lint:

0 commit comments

Comments
 (0)