Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab_shared_files
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
aidge
gitlab_shared_files
Commits
0cbab456
Commit
0cbab456
authored
10 months ago
by
Thibault Allenet
Browse files
Options
Downloads
Patches
Plain Diff
clean CI for tests
parent
c657e584
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab/ci/release/pip.gitlab-ci.yml
+1
-36
1 addition, 36 deletions
.gitlab/ci/release/pip.gitlab-ci.yml
with
1 addition
and
36 deletions
.gitlab/ci/release/pip.gitlab-ci.yml
+
1
−
36
View file @
0cbab456
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment