Add poetry cache

This commit is contained in:
Jake Howard 2022-09-13 17:47:48 +01:00
parent 9d4ac5fa1d
commit e6c12a9a38
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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