-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathtox.ini
More file actions
56 lines (54 loc) · 1.79 KB
/
Copy pathtox.ini
File metadata and controls
56 lines (54 loc) · 1.79 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
[tox]
env_list =
py3{,11,12}{,-devdeps}{,-pyargs,-cov}{,-xdist}
py3{,11,12}{-romancal,-rad}
requires =
tox-uv
[main]
rad_repo = https://github.com/spacetelescope/rad.git
romancal_repo = https://github.com/spacetelescope/romancal.git
[testenv]
description =
run tests
rad: with latest commit of `rad`
oldestdeps: with the oldest supported version of key dependencies
warnings: treating warnings as errors
cov: with coverage
xdist: using parallel processing
allowlist_externals =
git
pass_env =
CRDS_*
HOME
CI
TOXENV
CODECOV_*
set_env =
devdeps: UV_INDEX = https://pypi.anaconda.org/liberfa/simple https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
devdeps: UV_INDEX_STRATEGY = unsafe-any-match
extras =
test
uv_resolution =
oldestdeps: lowest-direct
deps =
withromancal: romancal @ git+{[main]romancal_repo}
xdist: pytest-xdist
cov: pytest-cov >= 4.1.0
rad: rad @ git+{[main]rad_repo}
romancal: romancal[test] @ git+{[main]romancal_repo}
devdeps: -r requirements-dev.txt
oldestdeps: minimum_dependencies
change_dir =
romancal: {env_tmp_dir}
commands_pre =
oldestdeps: minimum_dependencies roman_datamodels --filename {env_tmp_dir}/requirements-min.txt
oldestdeps: uv pip install -r {env_tmp_dir}/requirements-min.txt
{list_dependencies_command}
romancal: git clone -n --depth=1 --filter=blob:none {[main]romancal_repo}
romancal: git --git-dir={envtmpdir}/romancal/.git checkout HEAD pyproject.toml
commands =
pytest \
romancal: --config-file={env_tmp_dir}/pyproject.toml --pyargs romancal \
xdist: -n auto \
cov: --cov=roman_datamodels --cov=tests --cov-config pyproject.toml --cov-report term-missing --cov-report xml \
{posargs}