Skip to content

Commit

Permalink
Introduces parallel tests to speed up the processing (#230)
Browse files Browse the repository at this point in the history
* Introduces parallel tests to speed up the processing

* Make sure to distribute according to file, otherwise the docker fixtures will run more than once
  • Loading branch information
nils-braun authored Aug 29, 2021
1 parent 9ebe16a commit 4d5f7dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ jobs:
# This needs to happen in the same
# shell, because otherwise the JAVA_HOME
# will be wrong on windows
pytest --junitxml=junit/test-results.xml --cov-report=xml tests
# The --dist loadfile makes sure, that tests are distributed according to their file
# this is especially important to not run the docker-fixtures more than once
pytest --junitxml=junit/test-results.xml --cov-report=xml -n auto tests --dist loadfile
- name: Upload pytest test results
uses: actions/upload-artifact@v1
with:
Expand Down
1 change: 1 addition & 0 deletions conda.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ openjdk>=8
maven>=3.6.0
pytest>=6.0.1
pytest-cov>=2.10.1
pytest-xdist
mock>=4.0.3
sphinx>=3.2.1
tzlocal>=2.1
Expand Down

0 comments on commit 4d5f7dd

Please sign in to comment.