diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 52be41f9e25854189b634784de1f3b8cfff76209..954652a1ad616120b1404b206019b8859366f56e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -61,13 +61,9 @@ unittest_py3.8:
   image: python:3.8
   script: &python_test_script
     - touch ~/.pycaosdb.ini
-    - cd unittests/docker
-    - cp sources.list.local /etc/apt/
-    - mv /etc/apt/sources.list /etc/apt/sources.list.orig
-    - cat /etc/apt/sources.list.local /etc/apt/sources.list.orig > /etc/apt/sources.list
-    - apt-get update && apt-get install -y tox
-    - cd ../..
-    - make unittest
+    - pip install pytest
+    - pip install .
+    - python -m pytest unittests
 
 # Trigger building of server image and integration tests
 trigger_build: