Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 --dist worksteal --cov-report term-missing:skip-covered

- name: Save test results and coverage
uses: actions/upload-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ required_plugins =
pytest-mock
pytest-html
pytest-cov
pytest-xdist

junit_logging = out-err

Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ pybids==0.16.*
pyparsing==3.0.*
PySocks==1.7.*
pytest==7.2.*
pytest-xdist==3.6.*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pytest-xdist==3.6.*
pytest-xdist==3.6.*
pytest-xdist[psutil]==3.6.*

pytest-xdist[psutil]==3.6.*
pytest-console-scripts==1.3.*
pytest-cov==4.1.0
pytest-html==4.1.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_get_endpoints_density_map_five_points():

result = nib.load(in_result).get_fdata()

assert np.allclose(endpoints_map, result)
assert np.allclose(endpoints_map, result, rtol=1e-03)


def test_get_head_tail_density_maps():
Expand Down
Empty file modified scripts/scil_connectivity_compute_simple_matrix.py
100644 → 100755
Empty file.
Empty file modified scripts/scil_fibertube_score_tractogram.py
100644 → 100755
Empty file.
Empty file modified scripts/scil_fibertube_tracking.py
100644 → 100755
Empty file.
Empty file modified scripts/scil_tractogram_filter_collisions.py
100644 → 100755
Empty file.
Empty file modified scripts/scil_viz_tractogram_collisions.py
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion scripts/tests/test_aodf_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ def test_execution_symmetric_input(script_runner, monkeypatch):
ret = script_runner.run('scil_aodf_metrics.py', in_fodf,
'--sphere', 'repulsion100', '--not_all',
'--nufid', 'nufid.nii.gz',
'--processes', '4')
'--processes', '1')
assert not ret.success
Loading