File tree 3 files changed +23
-9
lines changed
3 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,21 @@ jobs:
29
29
displayName: 'Update build tools'
30
30
- script : |
31
31
python -m pip install --find-links %EXTRA_WHEELS% %DEPENDS%
32
- python -m pip install nose mock coverage codecov pytest
32
+ python -m pip install nose coverage codecov pytest
33
33
displayName: 'Install dependencies'
34
34
- script : |
35
- python -m pip install .
35
+ python -m pip install '.[$(CHECK_TYPE)]'
36
36
SET NIBABEL_DATA_DIR=%CD%\\nibabel-data
37
37
displayName: 'Install nibabel'
38
38
- script : |
39
39
mkdir for_testing
40
40
cd for_testing
41
41
cp ../.coveragerc .
42
- nosetests --with-doctest --with-coverage --cover-package nibabel nibabel
42
+ if %CHECK_TYPE%=="nosetests" (
43
+ nosetests --with-doctest --with-coverage --cover-package nibabel nibabel
44
+ ) else (
45
+ pytest --doctest-modules --cov nibabel -v --pyargs nibabel --deselect streamlines
46
+ )
43
47
displayName: 'Nose tests'
44
48
- script : |
45
49
cd for_testing
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ python:
28
28
29
29
matrix :
30
30
include :
31
+ # Old nosetests - Remove soon
32
+ - python : 3.7
33
+ env :
34
+ - CHECK_TYPE="nosetests"
31
35
# Basic dependencies only
32
36
- python : 3.5
33
37
env :
@@ -124,13 +128,18 @@ script:
124
128
cd doc
125
129
make html;
126
130
make doctest;
127
- elif [ "${CHECK_TYPE}" == "test " ]; then
131
+ elif [ "${CHECK_TYPE}" == "nosetests " ]; then
128
132
# Change into an innocuous directory and find tests from installation
129
133
mkdir for_testing
130
134
cd for_testing
131
135
cp ../.coveragerc .
132
136
nosetests --with-doctest --with-coverage --cover-package nibabel nibabel
133
- pytest -v ../nibabel/tests
137
+ elif [ "${CHECK_TYPE}" == "test" ]; then
138
+ # Change into an innocuous directory and find tests from installation
139
+ mkdir for_testing
140
+ cd for_testing
141
+ cp ../.coveragerc .
142
+ pytest --doctest-modules --cov nibabel -v --pyargs nibabel --deselect streamlines
134
143
else
135
144
false
136
145
fi
Original file line number Diff line number Diff line change @@ -32,10 +32,6 @@ python_requires = >=3.5.1
32
32
install_requires =
33
33
numpy >=1.12
34
34
packaging
35
- tests_require =
36
- nose >=0.11
37
- pytest
38
- test_suite = nose.collector
39
35
zip_safe = False
40
36
packages = find:
41
37
@@ -54,10 +50,15 @@ minc2 =
54
50
h5py
55
51
style =
56
52
flake8
53
+ nosetests =
54
+ coverage
55
+ nose >=0.11
56
+ pytest
57
57
test =
58
58
coverage
59
59
nose >=0.11
60
60
pytest
61
+ pytest-cov
61
62
all =
62
63
%(dicom)s
63
64
%(dev)s
You can’t perform that action at this time.
0 commit comments