Skip to content

Commit

Permalink
TEST FOR SDK
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo M. Oliveira <[email protected]>
  • Loading branch information
rimolive committed Feb 14, 2025
1 parent 472f877 commit 0847781
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion test/presubmit-tests-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,37 @@

source_root=$(pwd)


# Download and install protoc binary
PROTOC_ZIP=protoc-3.19.6-linux-x86_64.zip
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.19.6/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
rm -f $PROTOC_ZIP

protoc --version

# Create a virtual environment and activate it
python3 -m venv venv
source venv/bin/activate

python3 -m pip install --upgrade pip
python3 -m pip install wheel
python3 -m pip install setuptools
python3 -m pip install coveralls==1.9.2
python3 -m pip install $(grep 'absl-py==' sdk/python/requirements-dev.txt)
python3 -m pip install $(grep 'docker==' sdk/python/requirements-dev.txt)
python3 -m pip install $(grep 'pytest==' sdk/python/requirements-dev.txt)
python3 -m pip install $(grep 'pytest-xdist==' sdk/python/requirements-dev.txt)
python3 -m pip install $(grep 'pytest-cov==' sdk/python/requirements-dev.txt)
python3 -m pip install --upgrade protobuf
python3 -m pip uninstall protobuf
python3 -m pip install protobuf
python3 -m pip install grpcio grpcio-tools
python3 -m pip install api/v2alpha1/python

pushd api && make clean-python python && popd

python3 -m pip install api/v2alpha1/python
python3 -m pip install sdk/python

pytest sdk/python/kfp --cov=kfp
Expand Down

0 comments on commit 0847781

Please sign in to comment.