Skip to content

Commit aec2856

Browse files
test: Fix failing SDK tests by creating Python virtual environment (#11300)
Signed-off-by: vmudadla <vmudadla@redhat.com>
1 parent ae4ab38 commit aec2856

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/presubmit-tests-sdk.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515

1616
source_root=$(pwd)
1717

18+
# Create a virtual environment and activate it
19+
python3 -m venv venv
20+
source venv/bin/activate
21+
1822
python3 -m pip install --upgrade pip
1923
python3 -m pip install coveralls==1.9.2
2024
python3 -m pip install $(grep 'absl-py==' sdk/python/requirements-dev.txt)
@@ -37,3 +41,6 @@ export COVERALLS_SERVICE_NAME="prow"
3741
export COVERALLS_SERVICE_JOB_ID=$PROW_JOB_ID
3842
export CI_PULL_REQUEST="$REPO_BASE/pull/$PULL_NUMBER"
3943
# coveralls
44+
45+
# Deactivate the virtual environment
46+
deactivate

0 commit comments

Comments
 (0)