diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ccb23435fa44b679098f11397aea781e0cabdec6..b91aeb2a10860f3231e902c4cbd898bf61dc6cfa 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,13 @@ image: python:3.6
 stages:
   - test
 
+before_script:
+  - apt-get -q update && apt-get install -y python3-virtualenv
+  - virtualenv venv
+  - . venv/bin/activate
+  - python -V
+  - pip3 install requirements.txt
+
 install_dependencies:
   stage: test
   script: