Skip to content

Commit 7f9cf65

Browse files
aman23bediAmanpreet Singh Bedi
andauthored
test: Move run-all-gcpc-modules to GitHub Actions (#11157)
* add gcpc modules tests to gha Signed-off-by: Amanpreet Singh Bedi <amanpreet.bedi@zscaler.com> * remove run-all-gcpc-modules test driver script Signed-off-by: Amanpreet Singh Bedi <amanpreet.bedi@zscaler.com> * fix path under gcpc modules tests github action Signed-off-by: Amanpreet Singh Bedi <amanpreet.bedi@zscaler.com> * upgrade ubuntu base image Signed-off-by: Amanpreet Singh Bedi <amanpreet.bedi@zscaler.com> * upgrade python version to 3.9 Signed-off-by: Amanpreet Singh Bedi <amanpreetsinghbedi23@gmail.com> --------- Signed-off-by: Amanpreet Singh Bedi <amanpreet.bedi@zscaler.com> Signed-off-by: Amanpreet Singh Bedi <amanpreetsinghbedi23@gmail.com> Co-authored-by: Amanpreet Singh Bedi <amanpreet.bedi@zscaler.com>
1 parent a34552a commit 7f9cf65

File tree

2 files changed

+56
-28
lines changed

2 files changed

+56
-28
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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

test/presubmit-test-run-all-gcpc-modules.sh

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)