From ded8ab397aba81accee6ddb9b21caf1c29a8858e Mon Sep 17 00:00:00 2001
From: Tamas Gal <himself@tamasgal.com>
Date: Wed, 12 Mar 2025 13:53:12 +0100
Subject: [PATCH] Update CI

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 98a745d..9e3025a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,24 +17,32 @@ install-py3.9:
     stage: install
     script:
         - make install
+    cache:
+        key: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
 
 install-py3.12:
     image: git.km3net.de:4567/common/dockerfiles/base/python:3.12
     stage: install
     script:
         - make install
+    cache:
+        key: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
 
 install-dev-py3.9:
     image: docker.km3net.de/base/python:3.9
     stage: install-dev
     script:
         - make install-dev
+    cache:
+        key: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
 
 install-dev-py3.12:
     image: git.km3net.de:4567/common/dockerfiles/base/python:3.12
     stage: install-dev
     script:
         - make install-dev
+    cache:
+        key: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
 
 test-py3.9:
     image: docker.km3net.de/base/python:3.9
@@ -42,6 +50,8 @@ test-py3.9:
     script:
         - make install-dev
         - make test
+    cache:
+        key: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
 
 test-py3.12:
     image: git.km3net.de:4567/common/dockerfiles/base/python:3.12
@@ -49,17 +59,13 @@ test-py3.12:
     script:
         - make install-dev
         - make test
+    cache:
+        key: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
 
-doc-py3.9:
-    image: docker.km3net.de/base/python:3.9
-    stage: doc
-    script:
-        - make install-dev
-        - cd doc && make html
-
-doc-py3.12:
+doc:
     image: git.km3net.de:4567/common/dockerfiles/base/python:3.12
     stage: doc
     script:
         - make install-dev
         - cd doc && make html
+    cache: {}
-- 
GitLab