Skip to content

Commit 49b5390

Browse files
committed
fix: Ensure FS_LICENSE is accessible
1 parent b6140aa commit 49b5390

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/unittests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,17 @@ jobs:
173173
datalad update -r --merge -d hcph-pilot_fieldmaps/
174174
datalad get -r -J 2 -d hcph-pilot_fieldmaps/ hcph-pilot_fieldmaps/*
175175
176+
- name: Set FS_LICENSE variable
177+
run: echo "FS_LICENSE=$HOME/.cache/freesurfer/license.txt" >> $GITHUB_ENV
176178

177179
- name: Install FreeSurfer's mri_robust_template
178180
env:
179181
MRI_ROBUST_TEMPLATE: sx2n7/providers/osfstorage/5e825301d0e35400ebb481f2
180182
run: |
181183
curl https://files.osf.io/v1/resources/$MRI_ROBUST_TEMPLATE?direct > mri_robust_template
182184
sudo install mri_robust_template /usr/local/bin
183-
mkdir -p $HOME/.cache/freesurfer/
184-
echo "b2VzdGViYW5Ac3RhbmZvcmQuZWR1CjMwNzU2CiAqQ1MzYkJ5VXMxdTVNCiBGU2kvUGJsejJxR1V3Cg==" | base64 -d > $HOME/.cache/freesurfer/license.txt
185+
mkdir -p $( dirname $FS_LICENSE )
186+
echo "b2VzdGViYW5Ac3RhbmZvcmQuZWR1CjMwNzU2CiAqQ1MzYkJ5VXMxdTVNCiBGU2kvUGJsejJxR1V3Cg==" | base64 -d > $FS_LICENSE
185187
186188
- name: Run pytest with coverage
187189
run: |

0 commit comments

Comments
 (0)