Skip to content

Commit

Permalink
ci: add error handling for Python venv creation in run.sh (ggerganov#…
Browse files Browse the repository at this point in the history
  • Loading branch information
wangqin0 authored Dec 1, 2024
1 parent 3420909 commit 5c7a5aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,10 @@ if [ -z ${GG_BUILD_LOW_PERF} ]; then
ln -sfn ${mnt_models} ${SRC}/models-mnt

# Create a fresh python3 venv and enter it
python3 -m venv "$MNT/venv"
if ! python3 -m venv "$MNT/venv"; then
echo "Error: Failed to create Python virtual environment at $MNT/venv."
exit 1
fi
source "$MNT/venv/bin/activate"

pip install -r ${SRC}/requirements.txt --disable-pip-version-check
Expand Down

0 comments on commit 5c7a5aa

Please sign in to comment.