Skip to content

Commit 22e8b94

Browse files
committed
MNT: Use none to explicitly avoid dependencies, add labels
1 parent f2ca9be commit 22e8b94

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

.github/workflows/stable.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,20 +113,20 @@ jobs:
113113
# Basic dependencies only
114114
- os: ubuntu-latest
115115
python-version: 3.8
116-
dependencies: ''
116+
dependencies: 'none'
117117
# Absolute minimum dependencies
118118
- os: ubuntu-latest
119119
python-version: 3.8
120120
dependencies: 'min'
121121
- os: ubuntu-latest
122122
python-version: 3.12
123-
dependencies: ''
123+
dependencies: 'none'
124124
- os: windows-latest
125125
python-version: 3.12
126-
dependencies: ''
126+
dependencies: 'none'
127127
- os: macos-latest
128128
python-version: 3.12
129-
dependencies: ''
129+
dependencies: 'none'
130130
exclude:
131131
- os: ubuntu-latest
132132
architecture: x86

tox.ini

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
requires =
33
tox>=4
44
envlist =
5-
py38{,-min,-full}
5+
py38-{none,min,full}
66
py3{9,10}-full
7-
py3{11,12}{,-pre,-full}
7+
py3{11,12}-{none,pre,full}
88
doctest
99
style
1010
typecheck
@@ -20,6 +20,7 @@ python =
2020

2121
[gh-actions:env]
2222
DEPENDS =
23+
none: none
2324
pre: pre
2425
full: full
2526
min: min
@@ -32,6 +33,7 @@ CHECK =
3233

3334
[testenv]
3435
description = Typical pytest invocation with coverage
36+
labels = test
3537
install_command =
3638
python -I -m pip install \
3739
--only-binary numpy,scipy,h5py
@@ -88,13 +90,15 @@ commands =
8890

8991
[testenv:install]
9092
description = "Install and verify imports succeed"
93+
labels = test
9194
deps =
9295
install_command = python -I -m pip install {opts} {packages}
9396
commands =
9497
python -c "import nibabel; print(nibabel.__version__)"
9598

9699
[testenv:docs]
97100
description = Typical pytest invocation with coverage
101+
labels = docs
98102
allowlist_externals = make
99103
deps =
100104
sphinx
@@ -107,6 +111,7 @@ commands =
107111

108112
[testenv:doctest]
109113
description = Typical pytest invocation with coverage
114+
labels = docs
110115
allowlist_externals = make
111116
depends = docs
112117
deps =
@@ -121,6 +126,7 @@ commands =
121126

122127
[testenv:style]
123128
description = Check our style guide
129+
labels = check
124130
deps =
125131
flake8
126132
blue
@@ -133,6 +139,7 @@ commands =
133139

134140
[testenv:style-fix]
135141
description = Auto-apply style guide to the extent possible
142+
labels = pre-release
136143
deps =
137144
blue
138145
isort[colors]
@@ -143,6 +150,7 @@ commands =
143150

144151
[testenv:typecheck]
145152
description = Check type consistency
153+
labels = check
146154
deps =
147155
mypy
148156
pytest
@@ -157,6 +165,9 @@ commands =
157165
mypy nibabel
158166

159167
[testenv:build{,-strict}]
168+
labels =
169+
check
170+
pre-release
160171
deps =
161172
build
162173
twine
@@ -169,6 +180,7 @@ commands =
169180

170181
[testenv:publish]
171182
depends = build
183+
labels = release
172184
deps =
173185
twine
174186
skip_install = true
@@ -177,12 +189,7 @@ commands =
177189

178190
[testenv:zenodo]
179191
deps = gitpython
192+
labels = pre-release
180193
skip_install = true
181194
commands =
182195
python tools/prep_zenodo.py
183-
184-
[testenv:pre-release]
185-
depends =
186-
zenodo
187-
style-fix
188-
build

0 commit comments

Comments
 (0)