Add poetry cache
This commit is contained in:
parent
9d4ac5fa1d
commit
e6c12a9a38
1 changed files with 2 additions and 0 deletions
|
@ -29,10 +29,12 @@ pip:
|
||||||
key: pip-$CI_COMMIT_REF_SLUG
|
key: pip-$CI_COMMIT_REF_SLUG
|
||||||
paths:
|
paths:
|
||||||
- "$CI_PROJECT_DIR/.pip-cache"
|
- "$CI_PROJECT_DIR/.pip-cache"
|
||||||
|
- "$CI_PROJECT_DIR/.poetry-cache"
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update --yes
|
- apt-get update --yes
|
||||||
- apt-get install --yes build-essential libpq-dev git
|
- apt-get install --yes build-essential libpq-dev git
|
||||||
- pip install poetry==1.2.0
|
- pip install poetry==1.2.0
|
||||||
|
- poetry config cache-dir $CI_PROJECT_DIR/.poetry-cache
|
||||||
script:
|
script:
|
||||||
- python -m venv env
|
- python -m venv env
|
||||||
- source env/bin/activate
|
- source env/bin/activate
|
||||||
|
|
Loading…
Reference in a new issue