Skip to content

Commit

Permalink
gh-actions: Exclude actions when there are only UI changes
Browse files Browse the repository at this point in the history
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
 - Publish AutoML Algorithm Images
 - Publish Katib Core Images
 - Publish Trial Images
 - Python Test
 - Shellcheck

Signed-off-by: Orfeas Kourkakis <orfeas@arrikto.com>
  • Loading branch information
orfeas-k committed Nov 10, 2022
1 parent 67f369b commit 5a9b17f
Show file tree
Hide file tree
Showing 13 changed files with 60 additions and 21 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/darts-cifar10-e2e-test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: E2E Test with darts-cnn-cifar10
on:
- pull_request
pull_request:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/enas-cifar10-e2e-test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: E2E Test with enas-cnn-cifar10
on:
- pull_request
pull_request:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/mxnet-mnist-e2e-test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: E2E Test with mxnet-mnist
on:
- pull_request
pull_request:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/publish-algorithm-images.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Publish AutoML Algorithm Images

on:
- push
- pull_request
push:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'
pull_request:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'

jobs:
algorithm:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/publish-core-images.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Publish Katib Core Images

on:
- push
- pull_request
push:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'
pull_request:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'

jobs:
core:
Expand All @@ -16,7 +20,6 @@ jobs:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}


strategy:
fail-fast: false
matrix:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/publish-trial-images.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Publish Trial Images

on:
- push
- pull_request
push:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'
pull_request:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'

jobs:
trial:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pytorch-mnist-e2e-test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: E2E Test with pytorch-mnist
on:
- pull_request
pull_request:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/simple-pbt-e2e-test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: E2E Test with simple-pbt
on:
- pull_request
pull_request:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test-charmed-katib.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Charmed Katib

on:
- push
- pull_request
push:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'
pull_request:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'

jobs:
lint:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test-go.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Go Test

on:
- push
- pull_request
push:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'
pull_request:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'

jobs:
generatetests:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test-python.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Python Test

on:
- push
- pull_request
push:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'
pull_request:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'

jobs:
test:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test-shell-script.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Shellcheck

on:
- push
- pull_request
push:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'
pull_request:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'

jobs:
test:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tf-mnist-with-summaries-e2e-test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: E2E Test with tf-mnist-with-summaries
on:
- pull_request
pull_request:
paths-ignore:
- 'pkg/new-ui/v1beta1/frontend/**'

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 5a9b17f

Please sign in to comment.