From 8cf171edde7577b4179530192169730eff122ff2 Mon Sep 17 00:00:00 2001 From: Pierre Smeyers <pierre.smeyers@gmail.com> Date: Tue, 23 Apr 2024 19:21:24 +0200 Subject: [PATCH] fix(cache): always keep cache --- templates/gitlab-ci-python.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/gitlab-ci-python.yml b/templates/gitlab-ci-python.yml index 175c6dc..38d089c 100644 --- a/templates/gitlab-ci-python.yml +++ b/templates/gitlab-ci-python.yml @@ -812,15 +812,15 @@ stages: - name: "$TBC_TRACKING_IMAGE" command: ["--service", "python", "6.10.0"] variables: - # most Python tools honour XDG specs + # set local cache dir; most Python tools honour XDG specs XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" - # Poetry support: force virtualenv not in project dir & use local cache dir POETRY_CACHE_DIR: "$CI_PROJECT_DIR/.cache/poetry" - POETRY_VIRTUALENVS_IN_PROJECT: "false" PIPENV_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pipenv" + POETRY_VIRTUALENVS_IN_PROJECT: "false" cache: key: "$CI_COMMIT_REF_SLUG-python" + when: always paths: - .cache before_script: -- GitLab