Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Commit 4d5f7dd

Browse files
authored
Introduces parallel tests to speed up the processing (dask-contrib#230)
* Introduces parallel tests to speed up the processing * Make sure to distribute according to file, otherwise the docker fixtures will run more than once
1 parent 9ebe16a commit 4d5f7dd

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ jobs:
115115
# This needs to happen in the same
116116
# shell, because otherwise the JAVA_HOME
117117
# will be wrong on windows
118-
pytest --junitxml=junit/test-results.xml --cov-report=xml tests
118+
# The --dist loadfile makes sure, that tests are distributed according to their file
119+
# this is especially important to not run the docker-fixtures more than once
120+
pytest --junitxml=junit/test-results.xml --cov-report=xml -n auto tests --dist loadfile
119121
- name: Upload pytest test results
120122
uses: actions/upload-artifact@v1
121123
with:

conda.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ openjdk>=8
77
maven>=3.6.0
88
pytest>=6.0.1
99
pytest-cov>=2.10.1
10+
pytest-xdist
1011
mock>=4.0.3
1112
sphinx>=3.2.1
1213
tzlocal>=2.1

0 commit comments

Comments
 (0)