diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6af2345a8259b906110086b49c5bc2378c9ba2e1..06dbc48d445eeef04d2efba677a785d6bc0294b1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,9 +6,12 @@ stages: - test-jobs - test-tasks +variables: + PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/poetry" + cache: paths: - - .venv + - .cache/poetry build-env: stage: build @@ -18,7 +21,7 @@ build-env: - cd build/ - poetry config virtualenvs.in-project true - poetry install --no-root - - ls $CI_PROJECT_DIR/build/.venv + - ls $PIP_CACHE_DIR format: stage: format