From e95ac75a56e92bf90aab0e161502ed72894ba981 Mon Sep 17 00:00:00 2001
From: Karel van Klink <karel.vanklink@geant.org>
Date: Thu, 15 Aug 2024 10:58:30 +0200
Subject: [PATCH] cache the virtualenv in pipeline runs

---
 .gitlab-ci.yml | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6cc76019..cad4c558 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,7 +17,6 @@ run-tox-pipeline:
   services:
     - postgres:15.4
 
-
   # Change pip's cache directory to be inside the project directory since we can
   # only cache local items.
   variables:
@@ -27,14 +26,10 @@ run-tox-pipeline:
     DATABASE_URI_TEST: 'postgresql://nwa:nwa@postgres:5432/gso-test-db'
     PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
 
-  # Pip's cache doesn't store the python packages
-  # https://pip.pypa.io/en/stable/topics/caching/
-  #
-  # If you want to also cache the installed packages, you have to install
-  # them in a virtualenv and cache it as well.
   cache:
     paths:
       - .cache/pip
+      - venv/
 
   before_script:
     - pip install virtualenv
-- 
GitLab