diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8d54b948ef4a57b71556dfdfc460d54be0070fec..e463f0b821e4a4397b81aeedf97a5f95893e9c3f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,5 +8,5 @@ pytest:
   stage: test
   script:
     - python3 -m pip install --user -r requirements.txt
-    - python3 -m pip install --user pytest>=5.4.0 pytest-asyncio testpath
+    - python3 -m pip install --user 'pytest>=5.4.0' pytest-asyncio testpath
     - pytest -vv tests/test_*