-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tests - parallele #1091
base: master
Are you sure you want to change the base?
Update tests - parallele #1091
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments to make this even better, then LGTM !
.github/workflows/test.yml
Outdated
@@ -56,7 +56,7 @@ jobs: | |||
- name: Run tests | |||
run: | | |||
export C_INCLUDE_PATH=$pythonLocation/include/python${{ steps.python-selector.outputs.python-version }}:$C_INCLUDE_PATH | |||
pytest --cov-report term-missing:skip-covered | |||
pytest -n logical --cov-report term-missing:skip-covered |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to always activate pytest-xdist for all users when they run tests ? If yes, I would put that in addopts
in the pytest.ini
config file. Also, you would need to add pytest-xdist
and pytest-xdist[psutil]
to the required_plugins
list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add this : --dist worksteal
. it makes the test worker steal job from each other when they finnish early.
@@ -35,6 +35,7 @@ pybids==0.16.* | |||
pyparsing==3.0.* | |||
PySocks==1.7.* | |||
pytest==7.2.* | |||
pytest-xdist==3.6.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pytest-xdist==3.6.* | |
pytest-xdist==3.6.* | |
pytest-xdist[psutil]==3.6.* |
Quick description
Parallel tests
Closes #910
...
Type of change
Check the relevant options.
...
Checklist