Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #220 from nipreps/maint/fix-circleci-ants-install
Browse files Browse the repository at this point in the history
MAINT: Install *ANTs* through conda (mamba)
  • Loading branch information
oesteban authored Aug 28, 2024
2 parents 7d88519 + 416ffd5 commit ba370ac
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:

environment:
TEST_DATA_HOME: "/tmp/tests-data"
ANTSPATH: "/tmp/ants"

working_directory: /tmp/tests
steps:
Expand All @@ -23,24 +22,24 @@ jobs:

- restore_cache:
keys:
- ants-v1-{{ .Branch }}-{{ .Revision }}
- ants-v1--{{ .Revision }}
- ants-v1-{{ .Branch }}-
- ants-v1-main-
- ants-v1-
- micromamba-v1-{{ .Branch }}-{{ .Revision }}
- micromamba-v1--{{ .Revision }}
- micromamba-v1-{{ .Branch }}-
- micromamba-v1-main-
- micromamba-v1-

- run:
name: Install ANTs
command: |
if [[ ! -d "${ANTSPATH}" ]]; then
mkdir -p ${ANTSPATH}
curl -sSL "https://dl.dropbox.com/s/gwf51ykkk5bifyj/ants-Linux-centos6_x86_64-v2.3.4.tar.gz" | tar -xzC $ANTSPATH --strip-components 1
fi
eval "$(micromamba shell hook --shell bash)"
micromamba activate
micromamba shell init --shell bash --root-prefix=/tmp/micromamba
micromamba install -y -c conda-forge "ants=2.5"
- save_cache:
key: ants-v1-{{ .Branch }}-{{ .Revision }}
key: micromamba-v1-{{ .Branch }}-{{ .Revision }}
paths:
- /tmp/ants
- /tmp/micromamba

- run:
name: Configure git (pacify datalad)
Expand Down Expand Up @@ -74,15 +73,13 @@ jobs:
- run:
name: Initiate versioning
command: |
python3 -m pip install -U build hatch hatchling pip twine docutils
pip install /tmp/src/eddymotion[all]
micromamba run -n base python -m pip install -U build hatch hatchling pip twine docutils
micromamba run -n base python -m pip install /tmp/src/eddymotion[all]
- run:
name: Run tests
command: |
export PATH="${ANTSPATH}:$PATH"
pytest -n auto --doctest-modules /tmp/src/eddymotion/src /tmp/src/eddymotion/test
micromamba run -n base pytest -n auto --doctest-modules /tmp/src/eddymotion/src /tmp/src/eddymotion/test
workflows:
version: 2
Expand Down

0 comments on commit ba370ac

Please sign in to comment.