mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-20 14:11:37 +00:00
actions: use a venv for build and test
This commit is contained in:
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -457,11 +457,23 @@ jobs:
|
||||
"$PYTHON" get-pip.py
|
||||
"$PYTHON" -m pip install --upgrade pip
|
||||
"$PYTHON" -m pip install --upgrade wheel
|
||||
"$PYTHON" -m pip install setuptools
|
||||
"$PYTHON" -m pip install --upgrade setuptools
|
||||
"$PYTHON" -m pip install --upgrade venv
|
||||
"$PYTHON" -m pip install --upgrade importlib-metadata
|
||||
"$PYTHON" -m pip install --upgrade setuptools-scm
|
||||
"$PYTHON" -m pip list
|
||||
|
||||
|
||||
- name: Create and use Python venv
|
||||
run: |
|
||||
"$PYTHON" -m venv venv
|
||||
if [[ "${RUNNER_OS}" == "Windows" ]]; then
|
||||
PYTHON=venv/scripts/python.exe
|
||||
else
|
||||
PYTHON=venv/bin/python
|
||||
PYTHON=$(realpath "$PYTHON")
|
||||
echo "PYTHON=${PYTHON}" >> $GITHUB_ENV
|
||||
|
||||
- name: Install pip requirements
|
||||
run: |
|
||||
echo "before anything..."
|
||||
|
||||
Reference in New Issue
Block a user