From 7cc29c3047e62e0beeccc0a0c7a6876a09225682 Mon Sep 17 00:00:00 2001
From: nguyed99 <nguyed99@zedat.fu-berlin.de>
Date: Fri, 19 Jan 2024 23:04:27 +0100
Subject: [PATCH] Update pipeline

---
 .gitlab-ci.yml | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 06dbc48..6833500 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,7 @@ stages:
   - test-tasks
 
 variables:
-  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/poetry"
+  POETRY_CACHE_DIR: "$CI_PROJECT_DIR/.cache/poetry"
 
 cache:
   paths:
@@ -21,12 +21,16 @@ build-env:
   - cd build/
   - poetry config virtualenvs.in-project true
   - poetry install --no-root
-  - ls $PIP_CACHE_DIR
+  - ls $POETRY_CACHE_DIR/cache
+  - ls $POETRY_CACHE_DIR/virtualenvs
+
 
 format:
   stage: format
   script:
-    - export VIRTUALENV_NAME=$(ls $CI_PROJECT_DIR/build/.venv)
+    - ls $POETRY_CACHE_DIR/cache
+    - ls $POETRY_CACHE_DIR/virtualenvs
+    - export VIRTUALENV_NAME=$(ls $PIP_CACHE_DIR/virtualenvs)
     - source $CI_PROJECT_DIR/build/.venv/$VIRTUALENV_NAME/bin/activate
     - poetry run pre-commit install
     - poetry run yapf -i -r -p .
-- 
GitLab