Skip to content
Snippets Groups Projects

add spack post-installation testing

Merged Eleni Mathioulaki requested to merge test-spacktests-workaround into master
1 file
+ 3
4
Compare changes
  • Side-by-side
  • Inline
@@ -29,12 +29,11 @@ class PyTvbGdist(PythonPackage):
depends_on('py-scipy', type=('build', 'run'))
depends_on('py-cython', type=('build', 'run'))
depends_on('py-pytest', type='test')
@run_after('install')
@on_package_attributes(run_tests=True)
def install_test(self):
# TODO tests are not packed on Pypi from tvb-gdist repo. We need ro do that or duplicate them here
with working_dir('spack-test', create=True):
python('-c', 'import gdist')
pytest = which('pytest')
pytest()