diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 660f536cb3cd3c0629f66455179d815a76c41283..29952752169dbe3e617a908584e3610dcd006cbb 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -48,7 +48,7 @@ jobs:
                 curl -L -O https://tiker.net/ci-support-v0
                 . ./ci-support-v0
                 build_py_project_in_conda_env
-                python -m pip install mypy
+                python -m pip install mypy pytest
                 ./run-mypy.sh
 
     pytest3_pocl:
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 625004324da2c9eb3c6cf4dc7d988e71d2f31424..f830dfc17b19705abda59742cab357edf8de685d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -106,7 +106,7 @@ Mypy:
     curl -L -O https://tiker.net/ci-support-v0
     . ./ci-support-v0
     build_py_project_in_venv
-    python -m pip install mypy
+    python -m pip install mypy pytest
     ./run-mypy.sh
   tags:
   - python3