mirror of
https://framagit.org/la-chariotte/la-chariotte.git
synced 2025-05-02 11:52:27 +02:00
fix venv creation in ci
This commit is contained in:
parent
436dca2345
commit
a6267ab711
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ tests:
|
|||
- export CACHE_PATH="/venvs/${CI_PROJECT_NAME}/$(date +week-%V-%Y)"
|
||||
- if [[ "$CI_COMMIT_BRANCH" == *"--no-cache"* ]] ; then export CACHE_PATH="/venvs/$CI_COMMIT_SHORT_SHA"; fi
|
||||
- echo "Creating virtual env..."
|
||||
- if [ ! -d $CACHE_PATH/venv ] ; then virtualenv --python=python3.11 $CACHE_PATH/venv ; fi
|
||||
- if [ ! -d $CACHE_PATH/venv ] ; then python3.11 -m venv $CACHE_PATH/venv ; fi
|
||||
- $CACHE_PATH/venv/bin/pip install --upgrade pip
|
||||
- echo "Virtual env created."
|
||||
- echo "Running tests..."
|
||||
|
|
Loading…
Reference in a new issue