Skip to content

Commit

Permalink
test: Move run-all-gcpc-modules to GitHub Actions (#11157)
Browse files Browse the repository at this point in the history
* 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>
Signed-off-by: KevinGrantLee <kglee@google.com>
  • Loading branch information
2 people authored and KevinGrantLee committed Sep 17, 2024
1 parent 88db3c7 commit d02afc2
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 28 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/gcpc-modules-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
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
steps:
- name: Checkout code
uses: actions/checkout@v4

- 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 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
28 changes: 0 additions & 28 deletions test/presubmit-test-run-all-gcpc-modules.sh

This file was deleted.

0 comments on commit d02afc2

Please sign in to comment.