From 588bc920113a51690c497a011d137760249bafc3 Mon Sep 17 00:00:00 2001
From: nguyed99 <nguyed99@zedat.fu-berlin.de>
Date: Fri, 19 Jan 2024 21:25:19 +0100
Subject: [PATCH] Update pipeline

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ac29d50..7289072 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,19 +5,17 @@ stages:
 
 image: python:3.11-bullseye
 
-variables:
-  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
-
 cache:
   paths:
-    - .cache/pip
+    - .venv
+  key: "${CI_COMMIT_REF_SLUG}"
 
 build-env:
   stage: build
   script:
     - pip install poetry
     - cd build/
-    - poetry config virtualenvs.create false
+    - poetry config settings.virtualenvs.in-project true
     - poetry install
     - cd ..
   
-- 
GitLab