forked from soar-telescope/goodman_pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f131a0
commit e40d96d
Showing
2 changed files
with
10 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |