diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a418e36914fb897df9b571674974d87569ca2f96..7245bb73f508ab78143342e60dd20058ef1fa7d8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -30,7 +30,7 @@ default:
     - poetry install -vv
   image: python:3.9-slim-bullseye
 
-.test-template: &test
+.test-template:
   stage: tests
   image: "python:$PYTHON_VER-slim-bullseye"
   script: make test
@@ -54,13 +54,13 @@ run-pre-commit:
 # Tests jobs
 
 "Run tests with Python 3.9":
-  extends: .test
-  variables: 
+  extends: .test-template
+  variables:
     PYTHON_VER: "3.9"
 
 "Run tests with Python 3.10":
-  extends: .test
-  variables: 
+  extends: .test-template
+  variables:
     PYTHON_VER: "3.10"
 
 # Publish jobs
@@ -71,4 +71,4 @@ publish:
     - /^v(\d+\.)(\d+\.)(\d+)$/
   script:
     - make build
-    - poetry publish -username=__token__ --password=$PYPI_TOKEN
+    - poetry publish -username=__token__ --password=$PYPI_TOKEN
\ No newline at end of file