mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-03 22:01:39 +00:00
Rename virtual environment to .venv in build workflow
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -506,21 +506,21 @@ jobs:
|
||||
"${PYTHON}" -VV
|
||||
"${PYTHON}" -c "import ssl; print(f'Using {ssl.OPENSSL_VERSION}')"
|
||||
|
||||
- name: Create and use Python venv
|
||||
- name: Create and use Python .venv
|
||||
run: |
|
||||
cd "$GITHUB_WORKSPACE"
|
||||
curl -o get-pip.py https://bootstrap.pypa.io/get-pip.py
|
||||
"$PYTHON" get-pip.py
|
||||
"$PYTHON" -m venv venv
|
||||
"$PYTHON" -m venv .venv
|
||||
"$PYTHON" -m pip install uv
|
||||
CUTOFF=$(date -d '14 days ago' +%Y-%m-%dT00:00:00Z)
|
||||
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
||||
# pyscard seems to build outside venv but not in it.
|
||||
# build it so it's cached.
|
||||
"$PYTHON" -m uv pip install --upgrade pyscard --exclude-newer "$CUTOFF"
|
||||
export PYTHON="${GITHUB_WORKSPACE}/venv/scripts/python.exe"
|
||||
export PYTHON="${GITHUB_WORKSPACE}/.venv/scripts/python.exe"
|
||||
else
|
||||
export PYTHON="${GITHUB_WORKSPACE}/venv/bin/python3"
|
||||
export PYTHON="${GITHUB_WORKSPACE}/.venv/bin/python3"
|
||||
fi
|
||||
"$PYTHON" -m pip install uv
|
||||
echo "PYTHON=${PYTHON}" >> $GITHUB_ENV
|
||||
|
||||
Reference in New Issue
Block a user