Skip to content

Commit c18c2f3

Browse files
committed
test manual
Signed-off-by: ZePan110 <ze.pan@intel.com>
1 parent 578c1f6 commit c18c2f3

File tree

1 file changed

+60
-54
lines changed

1 file changed

+60
-54
lines changed

.github/workflows/manual-example-workflow.yml

Lines changed: 60 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3,58 +3,62 @@
33

44
name: Examples CD workflow on manual event
55
on:
6-
workflow_dispatch:
7-
inputs:
8-
nodes:
9-
default: "gaudi,xeon"
10-
description: "Hardware to run test"
11-
required: true
12-
type: string
13-
examples:
14-
default: "ChatQnA"
15-
description: 'List of examples to test [AgentQnA,AudioQnA,ChatQnA,CodeGen,CodeTrans,DocIndexRetriever,DocSum,FaqGen,InstructionTuning,MultimodalQnA,ProductivitySuite,RerankFinetuning,SearchQnA,Translation,VideoQnA,VisualQnA,AvatarChatbot,Text2Image,WorkflowExecAgent,DBQnA,EdgeCraftRAG,GraphRAG]'
16-
required: true
17-
type: string
18-
tag:
19-
default: "latest"
20-
description: "Tag to apply to images"
21-
required: true
22-
type: string
23-
deploy_gmc:
24-
default: false
25-
description: 'Whether to deploy gmc'
26-
required: true
27-
type: boolean
28-
build:
29-
default: true
30-
description: 'Build test required images for Examples'
31-
required: false
32-
type: boolean
33-
test_compose:
34-
default: true
35-
description: 'Test examples with docker compose'
36-
required: false
37-
type: boolean
38-
test_helmchart:
39-
default: false
40-
description: 'Test examples with k8s'
41-
required: false
42-
type: boolean
43-
test_gmc:
44-
default: false
45-
description: 'Test examples with gmc'
46-
required: false
47-
type: boolean
48-
opea_branch:
49-
default: "main"
50-
description: 'OPEA branch for image build'
51-
required: false
52-
type: string
53-
inject_commit:
54-
default: false
55-
description: "inject commit to docker images true or false"
56-
required: false
57-
type: string
6+
pull_request:
7+
# pull_request_target:
8+
branches: [main]
9+
types: [opened, reopened, ready_for_review, synchronize]
10+
# workflow_dispatch:
11+
# inputs:
12+
# nodes:
13+
# default: "gaudi,xeon"
14+
# description: "Hardware to run test"
15+
# required: true
16+
# type: string
17+
# examples:
18+
# default: "ChatQnA"
19+
# description: 'List of examples to test [AgentQnA,AudioQnA,ChatQnA,CodeGen,CodeTrans,DocIndexRetriever,DocSum,FaqGen,InstructionTuning,MultimodalQnA,ProductivitySuite,RerankFinetuning,SearchQnA,Translation,VideoQnA,VisualQnA,AvatarChatbot,Text2Image,WorkflowExecAgent,DBQnA,EdgeCraftRAG,GraphRAG]'
20+
# required: true
21+
# type: string
22+
# tag:
23+
# default: "latest"
24+
# description: "Tag to apply to images"
25+
# required: true
26+
# type: string
27+
# deploy_gmc:
28+
# default: false
29+
# description: 'Whether to deploy gmc'
30+
# required: true
31+
# type: boolean
32+
# build:
33+
# default: true
34+
# description: 'Build test required images for Examples'
35+
# required: false
36+
# type: boolean
37+
# test_compose:
38+
# default: true
39+
# description: 'Test examples with docker compose'
40+
# required: false
41+
# type: boolean
42+
# test_helmchart:
43+
# default: false
44+
# description: 'Test examples with k8s'
45+
# required: false
46+
# type: boolean
47+
# test_gmc:
48+
# default: false
49+
# description: 'Test examples with gmc'
50+
# required: false
51+
# type: boolean
52+
# opea_branch:
53+
# default: "main"
54+
# description: 'OPEA branch for image build'
55+
# required: false
56+
# type: string
57+
# inject_commit:
58+
# default: false
59+
# description: "inject commit to docker images true or false"
60+
# required: false
61+
# type: string
5862

5963
permissions: read-all
6064
jobs:
@@ -67,10 +71,12 @@ jobs:
6771
- name: Create Matrix
6872
id: get-matrix
6973
run: |
70-
examples=($(echo ${{ inputs.examples }} | tr ',' ' '))
74+
# examples=($(echo ${{ inputs.examples }} | tr ',' ' '))
75+
examples=($(echo "ChatQnA" | tr ',' ' '))
7176
examples_json=$(printf '%s\n' "${examples[@]}" | sort -u | jq -R '.' | jq -sc '.')
7277
echo "examples=$examples_json" >> $GITHUB_OUTPUT
73-
nodes=($(echo ${{ inputs.nodes }} | tr ',' ' '))
78+
# nodes=($(echo ${{ inputs.nodes }} | tr ',' ' '))
79+
nodes=($(echo "gaudi" | tr ',' ' '))
7480
nodes_json=$(printf '%s\n' "${nodes[@]}" | sort -u | jq -R '.' | jq -sc '.')
7581
echo "nodes=$nodes_json" >> $GITHUB_OUTPUT
7682

0 commit comments

Comments
 (0)