diff --git a/ci/package-build.template.yml b/ci/package-build.template.yml
index 93b75569dfe596cb5ad37b9dfff39e99392f3526..1413cb5182a2928d91b7169a9bbfe7b87087fc59 100644
--- a/ci/package-build.template.yml
+++ b/ci/package-build.template.yml
@@ -3,15 +3,17 @@
     image: python:3.10
     script:
         # Enter the package directory
+        - CAPO_PATH=$PWD
+        - CAPO_PROFILE=docker
         - WD=$PWD
         - cd ${PACKAGE_PATH}
 
         # Install build, poetry and pytest
-        - pip install build poetry pytest
+        - pip install build poetry pytest fakeredis
 
         # Install the package for testing
         - pip install .
-        - CAPO_PROFILE=docker pytest test
+        - pytest test
 
         # Build the package and push to the gitlab repo
         - poetry build