diff --git a/goodman_pipeline/core/tests/test_check_version.py b/goodman_pipeline/core/tests/test_check_version.py index 15a5f756..e856dc4b 100644 --- a/goodman_pipeline/core/tests/test_check_version.py +++ b/goodman_pipeline/core/tests/test_check_version.py @@ -7,7 +7,7 @@ from importlib.metadata import version -from goodman_pipeline.core import check_version +from ..core import check_version __version__ = version('goodman_pipeline') diff --git a/tox.ini b/tox.ini index 698f455a..347940ef 100644 --- a/tox.ini +++ b/tox.ini @@ -1,29 +1,15 @@ [tox] -envlist = +env_list = py{38, 39, 310, 311, 312}-test{,-cov} - -isolated_build = true +minversion = 4.4.12 [testenv] -setenv = - MPLBACKEND=agg -allowlist_externals = * - -passenv = HOME,WINDIR,LC_ALL,LC_CTYPE,CC,CI - -changedir = .tmp/{envname} - -description = - run tests - cov: also test coverage - +description = run the tests with pytest +package = wheel +wheel_build_env = .pkg deps = - cov: pytest-cov - cov: mock - + pytest>=6 + pytest-cov + mock commands = - pip freeze - pytest '{toxinidir}/goodman_pipeline' {posargs} - cov: pytest --pyargs goodman_pipeline --cov goodman_pipeline {posargs} - cov: coverage xml -o '{toxinidir}/coverage.xml' - html: coverage html -d .coverage_html \ No newline at end of file + pytest {tty:--color=yes} {posargs}