File tree Expand file tree Collapse file tree 2 files changed +56
-28
lines changed Expand file tree Collapse file tree 2 files changed +56
-28
lines changed Original file line number Diff line number Diff line change
1
+ name : GCPC modules test
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+
7
+ pull_request :
8
+ paths :
9
+ - ' .github/workflows/gcpc-modules-tests.yml'
10
+ - ' sdk/python/**'
11
+
12
+ jobs :
13
+ all-gcpc-tests :
14
+ runs-on : ubuntu-24.04
15
+ steps :
16
+ - name : Checkout code
17
+ uses : actions/checkout@v4
18
+
19
+ - name : Set up Python
20
+ uses : actions/setup-python@v4
21
+ with :
22
+ python-version : 3.9
23
+
24
+ - name : apt-get update
25
+ run : sudo apt-get update
26
+
27
+ - name : Install protobuf-compiler
28
+ run : sudo apt-get install protobuf-compiler -y
29
+
30
+ - name : Install setuptools
31
+ run : |
32
+ pip3 install setuptools
33
+ pip3 freeze
34
+
35
+ - name : Install Wheel
36
+ run : pip3 install wheel==0.42.0
37
+
38
+ - name : Install python sdk
39
+ run : pip install sdk/python
40
+
41
+ - name : Generate API proto files
42
+ working-directory : ./api
43
+ run : make clean python
44
+
45
+ - name : Install kfp-pipeline-spec from source
46
+ run : |
47
+ python3 -m pip install api/v2alpha1/python
48
+
49
+ - name : Install google-cloud component
50
+ run : pip install components/google-cloud
51
+
52
+ - name : Install Pytest
53
+ run : pip install $(grep 'pytest==' sdk/python/requirements-dev.txt)
54
+
55
+ - name : Run test
56
+ run : pytest ./test/gcpc-tests/run_all_gcpc_modules.py
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments