From b68cce4a3242af583e4c70abd741478dbd627681 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Peters?= <soe.peters@tu-braunschweig.de>
Date: Tue, 5 Oct 2021 14:36:03 +0000
Subject: [PATCH] Run python build and tests only when scheduled due to long
 build times and a not working reuse of the cache.

---
 .gitlab-ci.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d2423ba9d..ad0d5e353 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -125,6 +125,8 @@ gcc_9_python:
 
   needs: ["gcc_9"]
 
+  only: ["schedules"]
+
   cache:
     key: "gcc_9-$CI_COMMIT_REF_SLUG"
     paths:
@@ -207,6 +209,8 @@ gcc_9_python_bindings_test:
 
   needs: ["gcc_9_python"]
 
+  only: ["schedules"]
+
   before_script:
     - export PYTHONPATH="Python"
     - export VF_WHEEL=$(find dist/*.whl)
-- 
GitLab