diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c9104c7e48c91756520f7c5ed4dba0e70f2f5493..90abfcbd953de3aae0d57ad5257677da0d2f80a6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,13 @@ stages:
   - test
   - stats
 
+variables:
+  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
+cache:
+  paths:
+    - .cache/pip
+    - .cache/apt
+
 build:
   stage: build
   image: python:3.9.18-bookworm
@@ -12,7 +19,6 @@ build:
     paths:
       - build/
 
-
 unittest:
   stage: test
   image: python:3.9.18-bookworm