File tree Expand file tree Collapse file tree 2 files changed +23
-15
lines changed Expand file tree Collapse file tree 2 files changed +23
-15
lines changed Original file line number Diff line number Diff line change 16
16
required : true
17
17
type : string
18
18
description : " Hardware to run test"
19
- deploy :
20
- default : true
21
- required : true
22
- type : boolean
23
- description : ' Whether to deploy gmc '
19
+ opea_branch :
20
+ default : " main "
21
+ required : false
22
+ type : string
23
+ description : ' OPEA branch for image build '
24
24
workflow_call :
25
25
inputs :
26
26
tag :
33
33
required : true
34
34
type : string
35
35
description : " Hardware to run test"
36
- deploy :
37
- default : true
38
- required : true
39
- type : boolean
40
- description : ' Whether to deploy gmc '
36
+ opea_branch :
37
+ default : " main "
38
+ required : false
39
+ type : string
40
+ description : ' OPEA branch for image build '
41
41
42
42
jobs :
43
43
# ###################################################################################################
50
50
uses : actions/checkout@v4
51
51
with :
52
52
repository : opea-project/GenAIInfra
53
- ref : ${{ inputs.tag }}
53
+ ref : ${{ inputs.opea_branch }}
54
54
path : GenAIInfra
55
55
56
56
- name : Set variables
@@ -113,14 +113,13 @@ jobs:
113
113
# ###################################################################################################
114
114
gmc-install :
115
115
needs : image-build
116
- if : ${{ fromJSON(inputs.deploy) }}
117
116
runs-on : " k8s-${{ inputs.node }}"
118
117
steps :
119
118
- name : Checkout GenAIInfra repository
120
119
uses : actions/checkout@v4
121
120
with :
122
121
repository : opea-project/GenAIInfra
123
- ref : ${{ inputs.tag }}
122
+ ref : ${{ inputs.opea_branch }}
124
123
path : GenAIInfra
125
124
126
125
- name : Set variables
Original file line number Diff line number Diff line change 45
45
description : ' Test examples with k8s'
46
46
required : false
47
47
type : boolean
48
+ test_gmc :
49
+ default : false
50
+ description : ' Test examples with gmc'
51
+ required : false
52
+ type : boolean
48
53
opea_branch :
49
54
default : " main"
50
55
description : ' OPEA branch for image build'
70
75
echo "nodes=$nodes_json" >> $GITHUB_OUTPUT
71
76
72
77
build-deploy-gmc :
78
+ needs : [get-test-matrix]
79
+ if : ${{ fromJSON(inputs.deploy_gmc) }}
73
80
strategy :
74
81
matrix :
75
82
node : ${{ fromJson(needs.get-test-matrix.outputs.nodes) }}
@@ -78,11 +85,12 @@ jobs:
78
85
with :
79
86
node : ${{ matrix.node }}
80
87
tag : ${{ inputs.tag }}
81
- deploy : ${{ fromJSON( inputs.deploy_gmc) }}
88
+ opea_branch : ${{ inputs.opea_branch }}
82
89
secrets : inherit
83
90
84
91
run-examples :
85
- needs : [get-test-matrix]
92
+ needs : [get-test-matrix, build-deploy-gmc]
93
+ if : always()
86
94
strategy :
87
95
matrix :
88
96
example : ${{ fromJson(needs.get-test-matrix.outputs.examples) }}
97
105
scan : ${{ fromJSON(inputs.scan) }}
98
106
test_compose : ${{ fromJSON(inputs.test_compose) }}
99
107
test_k8s : ${{ fromJSON(inputs.test_k8s) }}
108
+ test_gmc : ${{ fromJSON(inputs.test_gmc) }}
100
109
opea_branch : ${{ inputs.opea_branch }}
101
110
secrets : inherit
You can’t perform that action at this time.
0 commit comments