From 35fc4c3538d63197937c9262183c5feb5f58dc60 Mon Sep 17 00:00:00 2001 From: Moritz-Alexander-Kern <moritz.kern@ymail.com> Date: Fri, 24 Feb 2023 09:01:52 +0100 Subject: [PATCH] add tests to viziphant package --- packages/py-viziphant/package.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/py-viziphant/package.py b/packages/py-viziphant/package.py index 9853eb54..f2a0db77 100644 --- a/packages/py-viziphant/package.py +++ b/packages/py-viziphant/package.py @@ -15,6 +15,7 @@ class PyViziphant(PythonPackage): # notify when the package is updated. maintainers = ['Moritz-Alexander-Kern'] + version('0.3.0', sha256='') version('0.2.0', sha256='044b5c92de169dfafd9665efe2c310e917d2c21980bcc9f560d5c727161f9bd8') version('0.1.0', sha256='8fd56ec8633f799396dc33fbace95d2553bedb17f680a8c0e97f43b3a629bf6c') @@ -27,3 +28,12 @@ class PyViziphant(PythonPackage): depends_on('py-six@1.10.0:', type=('build', 'run')) depends_on('py-matplotlib@3.3.2:', type=('build', 'run')) depends_on('py-seaborn@0.9.0:', type=('build', 'run')) + + depends_on("py-pytest", type=("test"), when="@0.3.0:") + + @run_after('install') + @on_package_attributes(run_tests=True) + def install_test(self): + # run tests here (this is just an example): + pytest = which('pytest') + pytest() -- GitLab