File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : kfp kubernetes tests with Python 3.8
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+
7
+ pull_request :
8
+ paths :
9
+ - ' .github/workflows/kfp-kubernetes-test-python38.yaml'
10
+ - ' sdk/python/**'
11
+ - ' api/v2alpha1/**'
12
+ - ' kubernetes_platform/**'
13
+
14
+ jobs :
15
+ kfp-kubernetes-test-python38 :
16
+ runs-on : ubuntu-24.04
17
+ steps :
18
+ - name : Checkout code
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Set up Python
22
+ uses : actions/setup-python@v4
23
+ with :
24
+ python-version : ' 3.8'
25
+
26
+ - name : Run tests
27
+ # original file is using sudo
28
+ run : ./test/plataform/kfp-kubernetes-execution-tests.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -x
2
+
3
+ source_root=$( pwd)
4
+ pip install --upgrade pip
5
+
6
+ pip install wheel
7
+ pip install sdk/python
8
+ sudo apt-get update
9
+ sudo apt-get install -y protobuf-compiler
10
+
11
+ pushd " ${source_root} /api"
12
+ make clean python
13
+ popd
14
+
15
+ # The orignal script is doing this
16
+ python3 -m pip install api/v2alpha1/python
17
+ pip install api/v2alpha1/python
18
+
19
+ pushd " ${source_root} /kubernetes_platform"
20
+ make clean python
21
+ popd
22
+
23
+ sudo apt-get install rustc -y
24
+
25
+ pip install -e " ${source_root} /kubernetes_platform/python[dev]"
26
+ pytest " ${source_root} /kubernetes_platform/python/test" -n auto
You can’t perform that action at this time.
0 commit comments