From aff21c262fd1af1db6d3f8358072eb09075fdfda Mon Sep 17 00:00:00 2001 From: Ravnoor Gill Date: Sun, 15 Dec 2024 18:34:37 -0500 Subject: [PATCH] feat(ci): switch to micromamba from conda --- .github/workflows/test-inference-pipeline.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test-inference-pipeline.yml b/.github/workflows/test-inference-pipeline.yml index 43fce31..72d4d81 100644 --- a/.github/workflows/test-inference-pipeline.yml +++ b/.github/workflows/test-inference-pipeline.yml @@ -19,21 +19,15 @@ jobs: - name: Install dependencies for deepMask run: | - eval "$(conda shell.bash hook)" - conda create -n preprocess python=3.8 - conda activate preprocess + eval "$(micromamba shell hook -s posix)" + micromamba create -n preprocess python=3.8 --yes + micromamba activate preprocess python -m pip install -r ./app/deepMask/app/requirements.txt - conda deactivate - name: Install dependencies for deepFCD run: | - eval "$(conda shell.bash hook)" - conda create -n deepFCD python=3.8 - conda activate deepFCD - python -m pip install -r ./app/requirements.txt - conda install -c conda-forge pygpu==0.7.6 - pip cache purge - conda deactivate + eval "$(micromamba shell hook -s posix)" + micromamba create -n deepFCD -f ./app/conda-lock.yml --yes - name: Download openneuro.org dataset to test the inference pipeline # https://openneuro.org/datasets/ds004199/versions/1.0.5 run: | @@ -47,6 +41,8 @@ jobs: - name: Run inference for deepFCD run: | + eval "$(micromamba shell hook -s posix)" + micromamba activate deepFCD ./app/inference.py ${CI_TESTING_PATIENT_ID} t1.nii.gz flair.nii.gz ~/io cuda 1 1 env: CI_TESTING_PATIENT_ID: "sub-00055"