install dependencies in virtual env
This commit is contained in:
parent
3595ff9917
commit
1fc26b78f3
1 changed files with 7 additions and 0 deletions
|
@ -6,6 +6,7 @@ workflow:
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
||||||
|
VIRTUAL_ENV: "$CI_PROJECT_DIR/.venv"
|
||||||
FF_USE_FASTZIP: "true"
|
FF_USE_FASTZIP: "true"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
@ -18,14 +19,20 @@ stages:
|
||||||
key:
|
key:
|
||||||
files:
|
files:
|
||||||
- setup.py
|
- setup.py
|
||||||
|
- requirements.txt
|
||||||
paths:
|
paths:
|
||||||
- .cache/pip
|
- .cache/pip
|
||||||
|
- ${VIRTUAL_ENV}
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- export PATH="${VIRTUAL_ENV}:$PATH"
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
extends: .pip cache template
|
extends: .pip cache template
|
||||||
image: python:3.10-alpine
|
image: python:3.10-alpine
|
||||||
stage: install
|
stage: install
|
||||||
script:
|
script:
|
||||||
|
- python3 -m venv "${VIRTUAL_ENV}"
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
cache:
|
cache:
|
||||||
policy: pull-push
|
policy: pull-push
|
||||||
|
|
Loading…
Add table
Reference in a new issue