forked from spacetelescope/romanisim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
58 lines (55 loc) · 1.52 KB
/
Copy pathtox.ini
File metadata and controls
58 lines (55 loc) · 1.52 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
58
[tox]
env_list =
py3{11,12,13}{,-pyargs,-regtests,-devdeps,-oldestdeps}{,-cov}{,-xdist}
[testenv:check-style]
description = check code style, e.g. with flake8
skip_install = true
deps =
ruff
commands =
ruff check . {posargs} --exclude romanisim/data/roman-technical-information
[testenv]
description =
run tests
devdeps: with the latest developer version of key dependencies
oldestdeps: with the oldest supported version of key dependencies
pyargs: with --pyargs on installed package
warnings: treating warnings as errors
regtests: with --bigdata and --slow flags
cov: with coverage
xdist: using parallel processing
use_develop = true
pass_env =
HOME
CI
TOXENV
CRDS_*
TEST_BIGDATA
CODECOV_*
STPSF_PATH
GALSIM_CAT_PATH
FFTW_DIR
LIBRARY_PATH
extras =
test
deps =
xdist: pytest-xdist
oldestdeps: minimum_dependencies
commands_pre =
oldestdeps: minimum_dependencies romanisim --filename requirements-min.txt
oldestdeps: pip install -r requirements-min.txt
devdeps: pip install -r requirements-dev.txt -U --upgrade-strategy eager
pip freeze
commands =
pip freeze
pytest \
cov: --cov=romanisim --cov-config=pyproject.toml --cov-report=term-missing --cov-report=xml \
warnings: -W error \
regtests: --bigdata --slow --basetemp={homedir}/test_outputs \
xdist: -n auto \
{posargs}
[testenv:pyargs]
changedir = {homedir}
usedevelop = false
commands =
pyargs: pytest {project_root}/docs --pyargs {posargs:romanisim}