Skip to content
Snippets Groups Projects
Commit 00c95cfa authored by Sven Marcus's avatar Sven Marcus
Browse files

Switch to building & installing wheel. VF unit tests without python

parent 58b579c7
No related branches found
No related tags found
1 merge request!6Proper Python simulation tests
...@@ -15,21 +15,16 @@ gcc_9_python: ...@@ -15,21 +15,16 @@ gcc_9_python:
stage: build stage: build
cache: cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" key: "Python-GCC9-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths: paths:
- _skbuild - build
artifacts: artifacts:
paths: paths:
- _skbuild/ - dist/
- Python/venv
before_script:
- python3 -m venv --system-site-packages Python/venv
- source Python/venv/bin/activate
script: script:
- python3 setup.py install - python3 setup.py bdist_wheel
gcc_9: gcc_9:
stage: build stage: build
...@@ -191,13 +186,13 @@ gcc_9_rebuild: ...@@ -191,13 +186,13 @@ gcc_9_rebuild:
############################################################################### ###############################################################################
## Tests ## ## Tests ##
############################################################################### ###############################################################################
gcc_9_python_unit_tests: gcc_9_unit_tests:
stage: test stage: test
needs: ["gcc_9_python"] needs: ["gcc_9"]
before_script: before_script:
- export VF_UNITTESTS=$(find _skbuild -name basicsTests) - export VF_UNITTESTS=$(find build_gcc9 -name basicsTests)
script: script:
- $VF_UNITTESTS - $VF_UNITTESTS
...@@ -222,14 +217,10 @@ gcc_9_python_bindings_test: ...@@ -222,14 +217,10 @@ gcc_9_python_bindings_test:
needs: ["gcc_9_python"] needs: ["gcc_9_python"]
artifacts:
when: on_failure
paths:
- output/mq/mq10000/
before_script: before_script:
- export PYTHONPATH="Python" - export PYTHONPATH="Python"
- source Python/venv/bin/activate - export VF_WHEEL=$(find -f dist/*.whl)
- pip3 install $VF_WHEEL
script: script:
- python3 -m unittest discover -s Python -v - python3 -m unittest discover -s Python -v
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment