Skip to content

Commit eb6ad74

Browse files
committed
MNT: Add tox config
1 parent b713b4d commit eb6ad74

File tree

1 file changed

+90
-0
lines changed

1 file changed

+90
-0
lines changed

tox.ini

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
[tox]
2+
requires =
3+
tox>=4
4+
envlist =
5+
py3{9,10,11,12,13}-none # Test nipype functionality on all versions
6+
py3{9,12,13}-full # Test with extra dependencies on oldest and two newest
7+
py39-min # Test with minimal dependencies
8+
py3{11,12,13}-pre # Test with pre-release on SPEC0-supported Python
9+
skip_missing_interpreters = true
10+
11+
# Configuration that allows us to split tests across GitHub runners effectively
12+
[gh-actions]
13+
python =
14+
3.9: py39
15+
3.10: py310
16+
3.11: py311
17+
3.12: py312
18+
3.13: py313
19+
20+
[gh-actions:env]
21+
DEPENDS =
22+
min: min
23+
none: none
24+
full: full
25+
pre: pre
26+
27+
[testenv]
28+
description = Pytest with coverage
29+
labels = test
30+
pip_pre =
31+
pre: true
32+
pass_env =
33+
# Parsed from `git grep getenv` and `git grep os.environ`
34+
# May not all be needed
35+
NIPYPE_NO_ET
36+
NO_ET
37+
ANTSPATH
38+
CI_SKIP_TEST
39+
FREESURFER_HOME
40+
USER
41+
FSLDIR
42+
FSLOUTPUTTYPE
43+
FSL_COURSE_DATA
44+
NIPYPE_NO_MATLAB
45+
OMP_NUM_THREADS
46+
NIPYPE_NO_R
47+
SPMMCRCMD
48+
FORCE_SPMMCR
49+
LOGNAME
50+
AWS_ACCESS_KEY_ID
51+
AWS_SECRET_ACCESS_KEY
52+
MATLABCMD
53+
MRTRIX3_HOME
54+
RCMD
55+
ETS_TOOLKIT
56+
NIPYPE_CONFIG_DIR
57+
DISPLAY
58+
PATHEXT
59+
# getpass.getuser() sources for Windows:
60+
LOGNAME
61+
USER
62+
LNAME
63+
USERNAME
64+
# Pass user color preferences through
65+
PY_COLORS
66+
FORCE_COLOR
67+
NO_COLOR
68+
CLICOLOR
69+
CLICOLOR_FORCE
70+
PYTHON_GIL
71+
deps =
72+
py313: traits @ git+https://github.com/enthought/traits.git@10954eb
73+
full: dipy @ git+https://github.com/dipy/dipy@master
74+
extras =
75+
tests
76+
full: doc
77+
full: profiler
78+
full: duecredit
79+
full: ssh
80+
full: nipy
81+
setenv =
82+
FSLOUTPUTTYPE=NIFTI_GZ
83+
pre: PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
84+
pre: UV_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
85+
uv_resolution =
86+
min: lowest-direct
87+
88+
commands =
89+
python -c "import nipype; print(nipype.__version__)"
90+
pytest --durations=20 --durations-min=1.0 --cov-report term-missing {posargs:-n auto}

0 commit comments

Comments
 (0)