fix(ci): clear leftover .venv before Python 3.14 venv create (BUG-677)
Staging gate run 2594 died in Install dependencies with FileExistsError on a reused hostexecutor .venv. Remove the leftover directory and create the venv with --clear so Python 3.14 mkdir does not abort the job.
This commit is contained in:
@@ -235,7 +235,10 @@ jobs:
|
||||
NPM_CONFIG_REGISTRY: https://registry.npmmirror.com
|
||||
run: |
|
||||
set -euo pipefail
|
||||
python3 -m venv .venv
|
||||
# Hostexecutor may keep a gitignored .venv/; Python 3.14 mkdir then
|
||||
# raises FileExistsError. Clear first instead of reusing leftovers.
|
||||
rm -rf -- .venv
|
||||
python3 -m venv --clear .venv
|
||||
export PATH="$PWD/.venv/bin:$PATH"
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install \
|
||||
|
||||
Reference in New Issue
Block a user