Skip to content

Commit e232f6e

Browse files
committed
CI: Install ANTs with conda
1 parent 49b5390 commit e232f6e

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

.github/workflows/unittests.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
AFNI_IMSAVE_WARNINGS: NO
3131
AFNI_TTATLAS_DATASET: /opt/afni/atlases
3232
AFNI_PLUGINPATH: /opt/afni/plugins
33-
ANTSPATH: /opt/ants
3433
strategy:
3534
max-parallel: 5
3635
matrix:
@@ -66,19 +65,6 @@ jobs:
6665
tcsh @update.afni.binaries -package linux_ubuntu_16_64 -bindir ${AFNI_HOME}
6766
fi
6867
69-
- uses: actions/cache@v4
70-
with:
71-
path: /opt/ants
72-
key: ants-v1
73-
restore-keys: |
74-
ants-v1
75-
- name: Install ANTS
76-
run: |
77-
if [[ ! -d "${ANTSPATH}" ]]; then
78-
sudo mkdir -p $ANTSPATH
79-
curl -sSL "https://dl.dropbox.com/s/gwf51ykkk5bifyj/ants-Linux-centos6_x86_64-v2.3.4.tar.gz" | sudo tar -xzC $ANTSPATH --strip-components 1
80-
fi
81-
8268
- name: Git settings (pacify DataLad)
8369
run: |
8470
git config --global user.name 'NiPreps Bot'
@@ -89,11 +75,11 @@ jobs:
8975
auto-update-conda: true
9076
auto-activate-base: true
9177
python-version: ${{ matrix.python-version }}
92-
channels: anaconda,https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/public/,conda-forge
78+
channels: https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/public/,conda-forge
9379
- uses: actions/cache@v4
9480
id: conda
9581
env:
96-
CACHE_NUM: v4
82+
CACHE_NUM: v5
9783
with:
9884
path: |
9985
~/conda_pkgs_dir
@@ -105,9 +91,9 @@ jobs:
10591
run: |
10692
conda install git-annex=*=alldep* pip
10793
pip install datalad datalad-osf
108-
- name: Install fsl
94+
- name: Install fsl and ANTs
10995
run: |
110-
conda install fsl-fugue fsl-topup
96+
conda install fsl-fugue fsl-topup ants
11197
- uses: actions/checkout@v4
11298
- name: Install dependencies
11399
timeout-minutes: 5
@@ -187,8 +173,8 @@ jobs:
187173
188174
- name: Run pytest with coverage
189175
run: |
190-
export LD_LIBRARY_PATH=/usr/lib/fsl/5.0:$LD_LIBRARY_PATH
191-
export PATH=$ANTSPATH:${AFNI_HOME}:/usr/lib/fsl/5.0:$PATH
176+
export PATH=${AFNI_HOME}:$PATH
177+
export FSLDIR=${CONDA_PREFIX}
192178
pytest -v --cov sdcflows --cov-report xml:cov.xml --doctest-modules -n auto sdcflows \
193179
--durations=20 --durations-min=10
194180

0 commit comments

Comments
 (0)