Skip to content

Commit

Permalink
test: Fix failing SDK tests by creating Python virtual environment (#…
Browse files Browse the repository at this point in the history
…11300)

Signed-off-by: vmudadla <vmudadla@redhat.com>
  • Loading branch information
VaniHaripriya authored Oct 16, 2024
1 parent ae4ab38 commit aec2856
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/presubmit-tests-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

0 comments on commit aec2856

Please sign in to comment.