-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Moved kfp-kubernetes-execution-tests to GitHub Actions (#10926)
* Moved kfp-kubernetes-execution-tests to GitHub Actions Signed-off-by: hbelmiro <[email protected]> * Removed Python versions matrix Signed-off-by: hbelmiro <[email protected]> --------- Signed-off-by: hbelmiro <[email protected]>
- Loading branch information
Showing
4 changed files
with
89 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: k8s execution tests | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
pull_request: | ||
paths: | ||
- '.github/workflows/kfp-kubernetes-execution-tests.yml' | ||
- 'sdk/python/**' | ||
- 'api/v2alpha1/**' | ||
- 'kubernetes_platform/**' | ||
|
||
jobs: | ||
kfp-kubernetes-execution-tests: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Create KFP cluster | ||
uses: ./.github/actions/kfp-cluster | ||
|
||
- name: Forward API port | ||
run: ./scripts/deploy/github/forward-port.sh "kubeflow" "ml-pipeline" 8888 8888 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
|
||
- 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 protobuf | ||
run: pip3 install protobuf==4.25.3 | ||
|
||
- 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: Generate kfp-kubernetes proto files from source | ||
working-directory: ./kubernetes_platform | ||
run: make clean python | ||
|
||
- name: Install kfp-kubernetes from source | ||
run: | | ||
pip install -e ./kubernetes_platform/python[dev] | ||
- name: Install requirements | ||
run: pip install -r ./test/kfp-kubernetes-execution-tests/requirements.txt | ||
|
||
- name: Run tests | ||
run: | | ||
export KFP_ENDPOINT="http://localhost:8888" | ||
export TIMEOUT_SECONDS=2700 | ||
pytest ./test/kfp-kubernetes-execution-tests/sdk_execution_tests.py --asyncio-task-timeout $TIMEOUT_SECONDS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.