Skip to content

Commit

Permalink
testing new tox.ini file
Browse files Browse the repository at this point in the history
  • Loading branch information
simontorres committed Jul 25, 2024
1 parent 3f131a0 commit e40d96d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 24 deletions.
2 changes: 1 addition & 1 deletion goodman_pipeline/core/tests/test_check_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
32 changes: 9 additions & 23 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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
pytest {tty:--color=yes} {posargs}

0 comments on commit e40d96d

Please sign in to comment.