diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b6614de00e54212ad11ca58af47e4a9cb77b3188..f0a0f1cc20ab537f36c13b399fa6ff536d95ba5e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,13 +4,6 @@ stages:
   - deploy
   - release
 
-.install_requirements: &install_requirements
-  - apt-get -qq update
-  - apt-get -y install curl pip libsasl2-dev libldap2-dev libssl-dev
-  - python3 -m pip install --upgrade pip
-  - pip install poetry
-  - poetry install --no-interaction
-
 .release_rules: &release_rules
   # rule to run job on a tag-reference which has the form number.number.number (semantic versioning)
   # or number.number.number-text (semantic versioning + release-name)
@@ -42,7 +35,11 @@ run_test_cases:
   stage: test
   image: python:3.11
   before_script:
-    - *install_requirements
+  - apt-get -qq update
+  - apt-get -y install curl pip libsasl2-dev libldap2-dev libssl-dev
+  - python3 -m pip install --upgrade pip
+  - pip install poetry
+  - poetry install --no-interaction
   script:
     - mkdir logs
     - make coverage