Skip to content

Commit f24a090

Browse files
committed
test: Add script and GitHub Action for kfp-kubernetes-test-python38
This change allows the vendors reuse `test/plataform/kfp-kubernetes-execution-tests.sh`.
1 parent 4930bee commit f24a090

File tree

2 files changed

+54
-0
lines changed

2 files changed

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

0 commit comments

Comments
 (0)