From 76b4d974efbda61f3b9e888ae858eba21d95029f Mon Sep 17 00:00:00 2001 From: fullbat Date: Fri, 15 Mar 2024 13:38:53 +0100 Subject: [PATCH] ci: download results --- .github/workflows/run_tests.yml | 5 +++++ tests/test_demo.py | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index cfa35ab..c299f25 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -54,6 +54,11 @@ jobs: echo "Run tests" python test_demo.py continue-on-error: true + - name: Download results + uses: actions/upload-artifact@v4 + with: + name: test-results + path: tests/demo_data/COMMIT - name: Check on failures if: steps.run_test.outcome != 'success' run: | diff --git a/tests/test_demo.py b/tests/test_demo.py index 38be189..b1fe723 100644 --- a/tests/test_demo.py +++ b/tests/test_demo.py @@ -16,7 +16,8 @@ def run_commit_StickZeppelinBall(local_path): filename_peaks = os.path.join( local_path, 'peaks.nii.gz' ), filename_mask = os.path.join( local_path, 'WM.nii.gz' ), #'WM.nii.gz', fiber_shift = 0.5, - peaks_use_affine = True + peaks_use_affine = True, + n_threads = 2 ) amico.util.fsl2scheme( os.path.join( local_path, 'bvals.txt'), os.path.join( local_path, 'bvecs.txt'), os.path.join( local_path, 'DWI.scheme') ) @@ -132,9 +133,9 @@ def run_tests(): run_commit_StickZeppelinBall(local_path) results_pickle = os.path.join( local_path, 'COMMIT', 'Results_StickZeppelinBall', 'results.pickle' ) check_results(results_pickle, ref_pickle_StickZeppelinBall) - run_commit_BallandStick(local_path) - results_pickle = os.path.join( local_path, 'COMMIT', 'Results_StickZeppelinBall', 'results.pickle' ) - check_results(results_pickle, ref_pickle_BallandStick) + # run_commit_BallandStick(local_path) + # results_pickle = os.path.join( local_path, 'COMMIT', 'Results_StickZeppelinBall', 'results.pickle' ) + # check_results(results_pickle, ref_pickle_BallandStick) # run_commit_VolumeFractions() # results_pickle = os.path.join( local_path, 'demo_data', 'COMMIT', 'Results_VolumeFractions', 'results.pickle' ) # check_results(results_pickle, ref_pickle_VolumeFractions)