diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8102a2ec2a38218db29f84bcf5e2afb677c2df72..421b777297e436b3fdafe1d5f00f1341755421ed 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+)?\%)$/'