diff --git a/test/presubmit-tests-sdk.sh b/test/presubmit-tests-sdk.sh index 7ce14e8bb5c..894e3d7a306 100755 --- a/test/presubmit-tests-sdk.sh +++ b/test/presubmit-tests-sdk.sh @@ -15,6 +15,10 @@ source_root=$(pwd) +# 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 coveralls==1.9.2 python3 -m pip install $(grep 'absl-py==' sdk/python/requirements-dev.txt) @@ -37,3 +41,6 @@ export COVERALLS_SERVICE_NAME="prow" export COVERALLS_SERVICE_JOB_ID=$PROW_JOB_ID export CI_PULL_REQUEST="$REPO_BASE/pull/$PULL_NUMBER" # coveralls + +# Deactivate the virtual environment +deactivate