diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 53a08e950501d4b7d16ff2be58a2b130f04f97f5..b7be0ae7eef2dc984286af9db611057732a7c3bc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,7 +12,7 @@ tests:
         POSTGRES_DB: funkwhale_network_test
   image: python:3.8-alpine
   before_script:
-    - apk add build-base poetry
+    - apk add python3-dev build-base poetry
     - poetry install
   script:
     - poetry run pytest