diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9ce6dca38048a2de70e9ff8828d44e0076434c30..1a8285eae58cf5447bab6d87fe46ba07c1c49bfb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,14 +3,14 @@ default:
 
 stages:
     - build
+    - test
     - deploy
-    - pages
 
 before_script:
     - python -V
     - python -m venv venv
     - . venv/bin/activate 
-    - pip install build twine pytest
+    - pip install -e .
 
 build:
     stage: build
@@ -23,6 +23,13 @@ build:
             - dist/*.whl
         expire_in: 2 days
 
+test:
+    stage: test
+    tags:
+        - vips-runner
+    script:
+        - pytest
+
 deploy:
     stage: deploy
     tags: