-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathtox.ini
More file actions
36 lines (35 loc) · 890 Bytes
/
tox.ini
File metadata and controls
36 lines (35 loc) · 890 Bytes
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
[tox]
envlist =
py3{,11,12}{,-jwst}{,-devdeps}{,-cov}{,-nocrds}{,-xdist}
[testenv]
allowlist_externals =
jwst: touch
description =
run tests
xdist: using parallel processing
cov: with coverage
pass_env =
CRDS_*
set_env =
cov: COVERAGE_RC_FILE=pyproject.toml
extras =
test
deps =
xdist: pytest-xdist
cov: pytest-cov
jwst: jwst[test] @ git+https://github.com/spacetelescope/jwst.git
package=
cov: editable
!cov: wheel
commands_pre =
devdeps: pip install -r requirements-dev.txt -U --upgrade-strategy eager
pip freeze
# make an empty pytest.ini so jwst tests don't use the settings in pyproject.toml
jwst: touch pytest.ini
commands =
pytest \
xdist: -n auto \
cov: --cov=src --cov-report=term-missing --cov-report=xml \
jwst: --pyargs jwst --ignore-glob=*/scripts/* -Werror \
nocrds: --no-crds
{posargs}