Skip to content

Commit ebf9471

Browse files
authored
Merge pull request #873 from anibalsolon/pytest
TEST: Make things work on Windows pipeline
2 parents 0011c11 + b2676d8 commit ebf9471

File tree

2 files changed

+71
-2
lines changed

2 files changed

+71
-2
lines changed

.azure-pipelines/windows.yml

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,83 @@ jobs:
3030
displayName: 'Update build tools'
3131
- script: |
3232
python -m pip install --find-links %EXTRA_WHEELS% %DEPENDS%
33-
python -m pip install coverage codecov pytest
33+
python -m pip install nose coverage codecov pytest pytest-cov
3434
displayName: 'Install dependencies'
3535
- script: |
3636
python -m pip install .[$(CHECK_TYPE)]
3737
SET NIBABEL_DATA_DIR=%CD%\\nibabel-data
3838
displayName: 'Install nibabel'
39+
- script: |
40+
mkdir for_testing
41+
cd for_testing
42+
cp ../.coveragerc .
43+
nosetests --with-doctest --with-coverage --cover-package nibabel nibabel ^
44+
-I test_array_sequence ^
45+
-I test_tractogram ^
46+
-I test_api_validators ^
47+
-I test_arrayproxy ^
48+
-I test_arraywriters ^
49+
-I test_batteryrunners ^
50+
-I test_brikhead ^
51+
-I test_casting ^
52+
-I test_cifti2io_header ^
53+
-I test_data ^
54+
-I test_deprecated ^
55+
-I test_deprecator ^
56+
-I test_dft ^
57+
-I test_ecat ^
58+
-I test_ecat_data ^
59+
-I test_endiancodes ^
60+
-I test_environment ^
61+
-I test_euler ^
62+
-I test_filebasedimages ^
63+
-I test_filehandles ^
64+
-I test_fileholders ^
65+
-I test_filename_parser ^
66+
-I test_files_interface ^
67+
-I test_fileslice ^
68+
-I test_fileutils ^
69+
-I test_floating ^
70+
-I test_funcs ^
71+
-I test_h5py_compat ^
72+
-I test_image_api ^
73+
-I test_image_load_save ^
74+
-I test_image_types ^
75+
-I test_imageclasses ^
76+
-I test_imageglobals ^
77+
-I test_keywordonly ^
78+
-I test_loadsave ^
79+
-I test_minc1 ^
80+
-I test_minc2 ^
81+
-I test_minc2_data ^
82+
-I test_mriutils ^
83+
-I test_nibabel_data ^
84+
-I test_nifti1 ^
85+
-I test_nifti2 ^
86+
-I test_openers ^
87+
-I test_optpkg ^
88+
-I test_orientations ^
89+
-I test_parrec ^
90+
-I test_parrec_data ^
91+
-I test_pkg_info ^
92+
-I test_processing ^
93+
-I test_proxy_api ^
94+
-I test_quaternions ^
95+
-I test_recoder ^
96+
-I test_remmovalschedule ^
97+
-I test_round_trip ^
98+
-I test_rstutils ^
99+
-I test_scaling ^
100+
-I test_wrapstruct
101+
displayName: 'Nose tests'
102+
condition: and(succeeded(), eq(variables['CHECK_TYPE'], 'nosetests'))
39103
- script: |
40104
mkdir for_testing
41105
cd for_testing
42106
cp ../.coveragerc .
43107
pytest --cov nibabel -v --pyargs nibabel
44-
displayName: 'Run tests'
108+
displayName: 'Pytest tests'
109+
condition: and(succeeded(), eq(variables['CHECK_TYPE'], 'test'))
45110
- script: |
46111
cd for_testing
47112
codecov

azure-pipelines.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ jobs:
3434
py38-x64:
3535
PYTHON_VERSION: '3.8'
3636
PYTHON_ARCH: 'x64'
37+
nosetests:
38+
PYTHON_VERSION: '3.6'
39+
PYTHON_ARCH: 'x64'
40+
CHECK_TYPE: 'nosetests'

0 commit comments

Comments
 (0)