Skip to content

Commit

Permalink
fix: added venv in pipeline.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
payaljindal committed Jan 23, 2024
1 parent 4420b15 commit 1db14cc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tools/target-server-validator/pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ smtp.gmail.com,465
EOF

# Install Dependencies
python3 -m pip install -r "$SCRIPTPATH/requirements.txt"
VENV_PATH="$SCRIPTPATH/venv"
python3 -m venv "$VENV_PATH"
# shellcheck source=/dev/null
. "$VENV_PATH/bin/activate"
pip install -r "$SCRIPTPATH/requirements.txt"

# Generate Gcloud Acccess Token
APIGEE_ACCESS_TOKEN="$(gcloud config config-helper --force-auth-refresh --format json | jq -r '.credential.access_token')"
Expand All @@ -78,3 +82,7 @@ python3 main.py

# Display Report
cat "$SCRIPTPATH/report.md"

# deactivate venv & cleanup
deactivate
rm -rf "$VENV_PATH"

0 comments on commit 1db14cc

Please sign in to comment.