diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1fc81c8e44ee27151db3777f0c9b975f8761a92d..e841b05c9417dbeb6cfcc4ee38f9e91e99fd8c44 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,7 @@ stages:
 build-intel:
   stage: build
   script:
-    - module load intel impi mkl cmake anaconda/3/2019.03
+    - module load intel impi mkl cmake anaconda/3/2019.03 mpi4py
     - mkdir build_intel/
     - cd build_intel/
     - python -m venv sisso
@@ -18,14 +18,14 @@ build-intel:
     - make
     - make install
     - cd ../
-    - LD_PRELOAD=libmpicxx.so.12 pytest tests/
+    - pytest tests/
   tags: 
     - docker
 
 build-gnu:
   stage: build
   script:
-    - module load gcc impi mkl cmake anaconda/3/2019.03
+    - module load gcc impi mkl cmake anaconda/3/2019.03 mpi4py
     - mkdir build_gcc/
     - cd build_gcc/
     - python -m venv sisso
@@ -36,6 +36,6 @@ build-gnu:
     - make
     - make install
     - cd ../
-    - LD_PRELOAD=libmpig++-9.3.0.so.12 pytest tests/
+    - pytest tests/
   tags: 
     - docker