Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f2d09bc3 authored by hhakim's avatar hhakim
Browse files

Add a ci job for testing pyfaust_openblaso whl package.

parent 30dc0817
No related branches found
No related tags found
No related merge requests found
Pipeline #834016 skipped
......@@ -9,6 +9,7 @@ variables:
NIX_PY_VER: '3.9' # default python version used to build python wrapper for "unix" system packages (pkg/macos, rpm/deb/linux)
GEN_EGG: 'OFF'
USE_OPENBLASO: 'OFF' # by default any pip whl pkg doesn't use openblas-openmp (eigen blas backend)
PYFAUST_PKG_NAME: 'pyfaust' # default package name, it can change for openblas-openmp whl package # only used in test_unix_purepy_pkg job
.ctest_template: &ctest_script
script:
......@@ -367,7 +368,7 @@ pkg_linux_release_static:
- job: pkg_linux_purepy_release
artifacts: true
.pages:
pages:
stage: gitlab_pages
script:
- if [[ ! -d 'build' ]]; then mkdir build;fi; cd build
......@@ -718,7 +719,7 @@ test_linux_pkg_release:
- source test_pyfaust-$CI_COMMIT_TAG/bin/activate
- PYVER=$($JOB_PYTHON --version | awk '{print $2}' | sed -e 's/\.//g;s/\(..\).*/\1/')
- SYS=$(if uname -a | grep -q Darwin; then echo macosx; else echo linux; fi)
- $JOB_PYTHON -m pip install --upgrade build/wrapper/python/dist/pyfaust-$CI_COMMIT_TAG-*$PYVER*$SYS*.whl
- $JOB_PYTHON -m pip install --upgrade build/wrapper/python/dist/${PYFAUST_PKG_NAME}-$CI_COMMIT_TAG-*$PYVER*$SYS*.whl
- $JOB_PYTHON -c "import pyfaust; print(pyfaust.version()); print(pyfaust.rand(5,5).toarray());"
- $JOB_PYTHON -c "import pyfaust.tests; pyfaust.tests.run_tests('cpu', 'double')"
- $JOB_PYTHON -c "import pyfaust.tests; pyfaust.tests.run_tests('cpu', 'float')"
......@@ -763,6 +764,15 @@ test_nux_purepy_release_extra_pyver:
tags:
- linux
test_nux_openblaso_purepy_release:
variables: {JOB_PYTHON: 'python3', PYFAUST_PKG_NAME: 'pyfaust_openblaso'}
extends: .test_unix_purepy_pkg
needs:
- job: pkg_linux_purepy_release_openblaso
artifacts: true
tags:
- linux
test_win_purepy_pkg:
variables: {JOB_PYTHON: 'py'}
stage: pkg_test
......@@ -791,7 +801,7 @@ test_win_purepy_pkg_extra_pyver:
- job: pkg_win_purepy_release_extra_pyver
artifacts: true
.pypi_pub:
pypi_pub:
stage: pkg_pub
script:
- python3 -m pip install --user twine
......@@ -812,6 +822,8 @@ test_win_purepy_pkg_extra_pyver:
artifacts: true
- job: pkg_linux_purepy_release_extra_pyver
artifacts: true
- job: pkg_linux_purepy_release_openblaso
artifacts: true
- job: pkg_win_purepy_release
artifacts: true
- job: pkg_win_purepy_release_extra_pyver
......@@ -826,6 +838,7 @@ test_win_purepy_pkg_extra_pyver:
- job: test_win_purepy_pkg_extra_pyver
- job: test_linux_pkg_release # all the packages for this version must be OK to have a go on pypi upload
- job: test_macos_pkg_release
- job: test_nux_openblaso_purepy_release
only:
- tags
tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment