-
Notifications
You must be signed in to change notification settings - Fork 1.6k
62 lines (48 loc) · 1.44 KB
/
gcpc-modules-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: GCPC modules test
on:
push:
branches: [master]
pull_request:
paths:
- '.github/workflows/gcpc-modules-tests.yml'
- 'sdk/python/**'
jobs:
all-gcpc-tests:
runs-on: ubuntu-24.04
strategy:
matrix:
python: [
{ 'version': '3.9' },
{ 'version': '3.13' }
]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python.version}}
- name: apt-get update
run: sudo apt-get update
- name: Install protobuf-compiler
run: sudo apt-get install protobuf-compiler -y
- name: Install setuptools
run: |
pip3 install setuptools
pip3 freeze
- name: Install Wheel
run: pip3 install wheel==0.42.0
- name: Install python sdk
run: pip install sdk/python
- name: Generate API proto files
working-directory: ./api
run: make clean python
- name: Install kfp-pipeline-spec from source
run: |
python3 -m pip install api/v2alpha1/python
- name: Install google-cloud component
run: pip install components/google-cloud
- name: Install Pytest
run: pip install $(grep 'pytest==' sdk/python/requirements-dev.txt)
- name: Run test
run: pytest ./test/gcpc-tests/run_all_gcpc_modules.py