forked from spacetelescope/jwst
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
57 lines (53 loc) · 1.76 KB
/
tox.ini
File metadata and controls
57 lines (53 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[tox]
envlist =
check-{dependencies,docs-links}
py3{,11,12,13,14}{,-oldestdeps,-stdevdeps,-devdeps}{,-cov}{,-xdist}
[testenv:check-dependencies]
description = verify that install_requires in setup.cfg has correct dependencies
# `extras` needs to be empty to check modules without additional dependencies
extras =
commands =
python {toxinidir}/jwst/tests/test_import.py
[testenv:check-docs-links]
changedir = docs
description = validate links in HTML docs
extras = docs
commands =
sphinx-build -W -b linkcheck . _build/html
[testenv]
# Run the tests in a temporary directory to make sure that we don't import
# jwst from the source tree
changedir = tmp/{envname}
description =
run tests
stdevdeps: with the latest developer version of upstream spacetelescope dependencies
devdeps: with the latest developer version of upstream third-party dependencies
oldestdeps: with the oldest supported version of key dependencies
cov: with coverage
xdist: using parallel processing
pass_env =
TOXENV
CI
CODECOV_*
HOME
CRDS_*
STRICT_VALIDATION
PASS_INVALID_VALUES
VALIDATE_ON_ASSIGNMENT
TEST_BIGDATA
extras =
test
deps =
xdist: pytest-xdist
oldestdeps: minimum_dependencies
commands_pre =
oldestdeps: minimum_dependencies jwst --filename {toxinidir}/requirements-min.txt
oldestdeps: pip install -r {toxinidir}/requirements-min.txt
stdevdeps: pip install -r {toxinidir}/requirements-dev-st.txt -U --upgrade-strategy eager
devdeps: pip install -r {toxinidir}/requirements-dev-thirdparty.txt -U --upgrade-strategy eager
pip freeze
commands =
pytest {toxinidir}/docs --pyargs jwst \
cov: --cov jwst --cov-config={toxinidir}/pyproject.toml --cov-report term-missing \
xdist: -n auto \
{posargs}