diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3d3317134601c222da1d8b66f839c40709a199e9..05612ca25330740b5b60946b4833e4bd01157125 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,6 +15,7 @@ variables:
     - git checkout "$CI_COMMIT_REF_NAME"
   script:
     - pip install .[testing]
+    - pip install pytest pytest-cov  # Explicitly install testing deps
     - pytest --cov --cov-report term-missing --cov-report xml:coverage.xml --cov-report html:cov_html
     - ls -la ./
   coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'