From 0cbab456e14fc76c5f9784d90fc20ce557fa260a Mon Sep 17 00:00:00 2001
From: thibault allenet <thibault.allenet@cea.fr>
Date: Mon, 10 Jun 2024 09:36:34 +0000
Subject: [PATCH] clean CI for tests

---
 .gitlab/ci/release/pip.gitlab-ci.yml | 37 +---------------------------
 1 file changed, 1 insertion(+), 36 deletions(-)

diff --git a/.gitlab/ci/release/pip.gitlab-ci.yml b/.gitlab/ci/release/pip.gitlab-ci.yml
index 390aeb1..4a8da59 100644
--- a/.gitlab/ci/release/pip.gitlab-ci.yml
+++ b/.gitlab/ci/release/pip.gitlab-ci.yml
@@ -13,11 +13,9 @@ release:pip:ubuntu:
     - !reference [.ubuntu:download:repositories, before_script] # located in common.gitlab-ci.yml
 
   script:
-    - set -x
     - python --version
     - python -m pip wheel -w wheelhouse .
     - echo "Tests"
-    - python -m pip list
     - >
       for DEP_NAME in "${DEPS_NAMES[@]}"; do
       	echo "current dep $DEP_NAME"
@@ -29,51 +27,18 @@ release:pip:ubuntu:
     - export WHL_NAME=$(find . -name "$CI_PROJECT_NAME*.whl")
     - pip install $WHL_NAME
     - cd ..
-    - ls .
     ############################################################################
     # In order to perform the test on the installed package, not on the source code, change the repo name with mv 
     # https://stackoverflow.com/questions/56908227/how-to-test-python-wheels-on-ci
     ############################################################################
     - rm -r src
     - mv $CI_PROJECT_NAME src
-    - ls src
     ############################################################################
-    - python -m pip list
     - cd src/$CI_PROJECT_NAME/unit_tests
     - export PATH_TEST=$(pwd)
     - cd ../../../..
     - pytest $PATH_TEST
-    - set +x
-
-  # after_script: 
-  #   - !reference [.ubuntu:download:repositories, before_script]
-  #   - set -x
-  #   - echo "After script"
-  #   # - export DEPS_NAMES=("aidge_core" "aidge_backend_cpu")
-  #   # - >
-  #   #   for DEP_NAME in $DEPS_NAMES; do
-  #   #   	echo "current dep $DEP_NAME"
-  #   #     cd $DEP_NAME
-  #   #     pip install . -v
-  #   #     cd ..
-  #   #   done
-  #   - export WHL_NAME=$(find . -name "$CI_PROJECT_NAME*.whl")
-  #   - pip install $WHL_NAME
-  #   - cd ..
-  #   - ls .
-  #   ############################################################################
-  #   # In order to perform the test on the installed package, not on the source code, change the repo name with mv 
-  #   # https://stackoverflow.com/questions/56908227/how-to-test-python-wheels-on-ci
-  #   ############################################################################
-  #   - rm -r src
-  #   - mv $CI_PROJECT_NAME src
-  #   - ls src
-  #   ############################################################################
-  #   - cd toto/$CI_PROJECT_NAME/unit_tests
-  #   - export PATH_TEST=$(pwd)
-  #   - cd ../../../..
-  #   - pytest $PATH_TEST
-  #   - set +x
+    - mv aidge/src aidge/aidge_onnx
 
 # deploy:pip:ubuntu :
 #   needs: release:pip:ubuntu
-- 
GitLab