Skip to content

Commit

Permalink
ci: download results
Browse files Browse the repository at this point in the history
  • Loading branch information
fullbat committed Mar 15, 2024
1 parent 50d79dc commit 76b4d97
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
9 changes: 5 additions & 4 deletions tests/test_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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') )
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 76b4d97

Please sign in to comment.