diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 020acd92f92e80b9af94d60f57364c9b20fbdbae..858273a929c06a598e2e7e64549643f0ddd8768c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -82,7 +82,7 @@ test:
   before_script:
     - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
   script:
-    - apk add --update py-pip
+    - apk update && apk add postgresql-dev gcc python3-dev musl-dev py-pip
     - pip install -r requirements.txt
     - pytest
     - chmod +x env_setup.sh wait_for_container.sh