Skip to content

Commit 0ee6062

Browse files
authored
gh-actions: Extend action to run Frontend Unit tests (#1998)
* gh-actions: Extend action to run Frontend Unit tests Extend Frontend Test action to run also KWA frontend unit tests. Signed-off-by: Orfeas Kourkakis <[email protected]> * gh-actions: Exclude actions 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 - Publish AutoML Algorithm Images - Publish Katib Core Images - Publish Trial Images - Python Test - Shellcheck Signed-off-by: Orfeas Kourkakis <[email protected]> * gh-actions: Add action to build Katib UI image. Signed-off-by: Orfeas Kourkakis <[email protected]> Signed-off-by: Orfeas Kourkakis <[email protected]>
1 parent b1ed847 commit 0ee6062

16 files changed

+113
-22
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/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:
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publish Katib UI Image
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
ui:
9+
name: Publish Image
10+
uses: ./.github/workflows/build-and-publish-images.yaml
11+
with:
12+
component-name: katib-ui
13+
platforms: linux/amd64,linux/arm64
14+
dockerfile: cmd/new-ui/v1beta1/Dockerfile
15+
secrets:
16+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
17+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

.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)