diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cc7cd5b471e38a32a21c33d943f8301b5b3d80e9..5ccabee49394c03f07adc317285a75440281627f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,10 +11,14 @@ include:
     - local: 'templates/python/code_quality/ruff/ruff.yml'
 
 python_install:
+    extends:
+        - .python_install
     stage: templates
     variables:
         PROJECT_PATH: "tests/python_install_project"
         PYTHON_SETUP: "pip install ${PROJECT_PATH}"
+    script:
+        - !reference [.python_install, script]
     only:
         changes:
             - .gitlab-ci.yml