diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4c2e59dac67fef0b0bed52b625a4ac1fd3d8bc54..54083f227a6987db22d5fc8b6a82d939dde6a346 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,9 @@ test:
   stage: test
   image: python:3.8
   script:
-    - python -m unittest discover -s tests
+    - pip install pytest  # Installe pytest
+    - pytest  # Exécute pytest pour détecter et exécuter tous les tests
+
 
 # Job de construction de l'image Docker
 build: