From ed1c14788a95347604a276fcb698d3a8c3bd4563 Mon Sep 17 00:00:00 2001 From: arnaudbore Date: Thu, 12 Dec 2024 11:23:42 -0500 Subject: [PATCH] update tests --- .github/workflows/test.yml | 2 +- requirements.txt | 1 + scripts/tests/test_aodf_metrics.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 42c99cb2f..b82bfc521 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 - name: Save test results and coverage uses: actions/upload-artifact@v4 diff --git a/requirements.txt b/requirements.txt index d946292e5..d98e95929 100644 --- a/requirements.txt +++ b/requirements.txt @@ -35,6 +35,7 @@ pybids==0.16.* pyparsing==3.0.* PySocks==1.7.* pytest==7.2.* +pytest-xdist==3.6.* pytest-console-scripts==1.3.* pytest-cov==4.1.0 pytest-html==4.1.1 diff --git a/scripts/tests/test_aodf_metrics.py b/scripts/tests/test_aodf_metrics.py index a242e060b..5e974b926 100644 --- a/scripts/tests/test_aodf_metrics.py +++ b/scripts/tests/test_aodf_metrics.py @@ -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', '2') assert not ret.success