Skip to content

Commit d3a5b8b

Browse files
committed
CI: Parallelize pytest to split tests across cores
1 parent 6ca791d commit d3a5b8b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

nipype/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def get_nipype_gitversion():
153153
if sys.version_info <= (3, 4):
154154
REQUIRES.append('configparser')
155155

156-
TESTS_REQUIRES = ['pytest-cov', 'codecov']
156+
TESTS_REQUIRES = ['pytest-cov', 'codecov', 'pytest-xdist']
157157

158158
EXTRA_REQUIRES = {
159159
'doc': ['Sphinx>=1.4', 'numpydoc', 'matplotlib', 'pydotplus', 'pydot>=1.2.3'],

nipype/pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[pytest]
22
norecursedirs = .git build dist doc nipype/external tools examples src
3-
addopts = --doctest-modules
3+
addopts = --doctest-modules -n auto
44
doctest_optionflags = ALLOW_UNICODE NORMALIZE_WHITESPACE

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ click>=6.6.0
1111
funcsigs
1212
configparser
1313
pytest>=3.0
14+
pytest-xdist
1415
mock
1516
pydotplus
1617
pydot>=1.2.3

0 commit comments

Comments
 (0)