diff --git a/.circleci/config.yml b/.circleci/config.yml index 8c023a6b..a55666f4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,7 +14,6 @@ jobs: environment: TEST_DATA_HOME: "/tmp/tests-data" - ANTSPATH: "/tmp/ants" working_directory: /tmp/tests steps: @@ -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) @@ -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