Skip to content

Commit 33bef76

Browse files
committed
CI: Use xdist to speed up tests
1 parent 498f78e commit 33bef76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ jobs:
184184
- name: Install test dependencies
185185
run: python -m pip install "niworkflows[tests]"
186186
- name: Run tests
187-
run: pytest -sv --doctest-modules --cov niworkflows niworkflows
187+
run: pytest -sv --doctest-modules -n auto --cov niworkflows niworkflows
188188
- uses: codecov/codecov-action@v3
189189
name: Submit to CodeCov
190190

@@ -244,7 +244,7 @@ jobs:
244244
- name: Install test dependencies
245245
run: python -m pip install $PIP_FLAGS "niworkflows[tests]"
246246
- name: Run tests
247-
run: pytest -sv --doctest-modules --cov niworkflows niworkflows
247+
run: pytest -sv --doctest-modules -n auto --cov niworkflows niworkflows
248248
- uses: codecov/codecov-action@v3
249249
name: Submit to CodeCov
250250

0 commit comments

Comments
 (0)