Skip to content

Commit 68d39a7

Browse files
committed
CI: Add doctest extra that installs doc and test extras
1 parent 7792ff6 commit 68d39a7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/misc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
matrix:
2525
python-version: ["3.10"]
2626
install: ['pip']
27-
check: ['style', 'doc']
27+
check: ['style', 'doctest']
2828
pip-flags: ['']
2929
depends: ['REQUIREMENTS']
3030
env:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ test = [
6767
"pytest-xdist",
6868
]
6969
zstd = ["pyzstd >= 0.14.3"]
70+
doctest = ["nibabel[doc,test]"]
7071
all = ["nibabel[dicomfs,dev,doc,minc2,spm,style,test,zstd]"]
7172

7273
[tool.setuptools]

tools/ci/check.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ export NIBABEL_DATA_DIR="$PWD/nibabel-data"
1616
if [ "${CHECK_TYPE}" == "style" ]; then
1717
# Run styles only on core nibabel code.
1818
flake8 nibabel
19-
elif [ "${CHECK_TYPE}" == "doc" ]; then
20-
cd doc
21-
make html && make doctest
19+
elif [ "${CHECK_TYPE}" == "doctest" ]; then
20+
make -C doc html && make -C doc doctest
2221
elif [ "${CHECK_TYPE}" == "test" ]; then
2322
# Change into an innocuous directory and find tests from installation
2423
mkdir for_testing

0 commit comments

Comments
 (0)