@@ -27,23 +27,44 @@ inputs:
27
27
required : true
28
28
description : whether to execute tune-api test or not
29
29
default : false
30
+ notebook-input :
31
+ description : List of paths to the input notebooks, separated by commas
32
+ required : false
33
+ default : " "
34
+ algorithms :
35
+ description : algorythm for image suggestion
36
+ required : false
37
+ default : " "
30
38
31
39
runs :
32
40
using : composite
33
41
steps :
34
42
- name : Setup Minikube Cluster
35
43
shell : bash
36
- run : ./test/e2e/v1beta1/scripts/gh-actions/setup-minikube.sh ${{ inputs.katib-ui }} ${{ inputs.tune-api }} ${{ inputs.trial-images }} ${{ inputs.experiments }}
44
+ run : ./test/e2e/v1beta1/scripts/gh-actions/setup-minikube.sh ${{ inputs.katib-ui }} ${{ inputs.tune-api }} ${{ inputs.trial-images }} ${{ inputs.experiments }} ${{ inputs.algorithms }}
37
45
38
46
- name : Setup Katib
39
47
shell : bash
40
48
run : ./test/e2e/v1beta1/scripts/gh-actions/setup-katib.sh ${{ inputs.katib-ui }} ${{ inputs.training-operator }} ${{ inputs.database-type }}
41
49
50
+ - name : Install dependencies
51
+ shell : bash
52
+ run : |
53
+ python -m pip install --upgrade pip
54
+ pip install papermill jupyter ipykernel
55
+ python -m ipykernel install --user --name python3 --display-name "Python 3"
56
+
42
57
- name : Run E2E Experiment
43
58
shell : bash
44
59
run : |
45
- if "${{ inputs.tune-api }}"; then
60
+ if [[ -n "${{ inputs.notebook-input }}" ]]; then
61
+ IFS=',' read -r -a NOTEBOOK_ARRAY <<< "${{ inputs.notebook-input }}"
62
+ for NOTEBOOK in "${NOTEBOOK_ARRAY[@]}"; do
63
+ echo "Running notebook: $NOTEBOOK"
64
+ ./test/e2e/v1beta1/scripts/gh-actions/run-notebook.sh -i "$NOTEBOOK" -n kubeflow
65
+ done
66
+ elif "${{ inputs.tune-api }}"; then
46
67
./test/e2e/v1beta1/scripts/gh-actions/run-e2e-tune-api.sh
47
68
else
48
69
./test/e2e/v1beta1/scripts/gh-actions/run-e2e-experiment.sh ${{ inputs.experiments }}
49
- fi
70
+ fi
0 commit comments