Skip to content

Commit 28357f5

Browse files
committed
chore(scripts): adjust python version verification for CI execution
1 parent ff31ee6 commit 28357f5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/utils.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ function verify_python() {
138138
local python3_exe=""
139139
python3_exe="$(which python3)"
140140

141-
if ! [ -f "$(dirname "$python3_exe")/../pyvenv.cfg" ]; then
141+
if [ "${CI:-false}" = "true" ]; then
142+
info "Running in CI environment, skipping Python virtual environment verification."
143+
144+
elif ! [ -f "$(dirname "$python3_exe")/../pyvenv.cfg" ]; then
142145
error "No virtual environment detected."
143146
return 1
144147
fi

0 commit comments

Comments
 (0)