From ad29ab35406de801c50320713708b60b8516d09c Mon Sep 17 00:00:00 2001
From: Valentin Emiya <23557104+valentin-emiya@users.noreply.github.com>
Date: Thu, 11 Jul 2024 16:30:09 +0200
Subject: [PATCH] update ci.yml

---
 .gitlab-ci.yml | 35 +++++++++++++++++++----------------
 1 file changed, 19 insertions(+), 16 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2b6f4db..42b4f0a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -33,7 +33,7 @@ default:
     - virtualenv venv
     - source venv/bin/activate
     - pip install --upgrade pip
-    - pip install matplotlib numpy scipy six nose coverage pytest pytest-cov
+    - pip install matplotlib numpy scipy six coverage pytest pytest-cov
 
 stages:
   - test
@@ -48,7 +48,6 @@ install_and_test_39:
   script:
     - dpkg -L python3-pytest | xargs file | grep executable
     - pip3 install -e . --no-deps
-    # - py.test-3
     - python3 -m pytest
   artifacts:
     when: always
@@ -57,20 +56,23 @@ install_and_test_39:
       - build
     expire_in: 8d
 
-# # Tests on X86_64 ubuntu
-# ubuntu:X86_64:
-#   image: registry.gitlab.lis-lab.fr:5005/dev/ltfatpy/ubuntu:X86_64
-#   tags:
-#     - docker
-#   script:
-#     - pip3 install -e . --no-deps
-#     - py.test-3
-#   artifacts:
-#     when: always
-#     untracked: true
-#     paths:
-#       - build
-#     expire_in: 8d
+# Tests on X86_64 ubuntu
+ubuntu:X86_64:
+  image: registry.gitlab.lis-lab.fr:5005/dev/ltfatpy/ubuntu:X86_64
+  tags:
+    - docker
+  script:
+    - conda create -n py39 Python=3.9
+    - conda activate py39
+    - pip3 install -e . --no-deps
+    - python3 -m pytest
+    # - py.test-3
+  artifacts:
+    when: always
+    untracked: true
+    paths:
+      - build
+    expire_in: 8d
 
 # # Tests on i686 ubuntu
 # ubuntu:i686:
@@ -91,6 +93,7 @@ install_and_test_39:
 .doc: &doc
   script:
     - pip3 install setuptools sphinx
+    - pip install matplotlib numpy scipy six coverage pytest pytest-cov
     - pip3 install -e . --no-deps
     - python3 setup.py build_sphinx
     - cp -r build/sphinx/html public
-- 
GitLab