From 4502cd7f94f8e9aac2682d435a6a1c42bdb0fb81 Mon Sep 17 00:00:00 2001 From: Atharva Arya Date: Thu, 11 Apr 2024 19:07:06 +0530 Subject: [PATCH] Use setup micromamba --- .github/workflows/bridge.yml | 13 ++++++------- .github/workflows/carsus-data-repos-config.yml | 13 ++++++------- .github/workflows/docs-build.yml | 13 ++++++------- 3 files changed, 18 insertions(+), 21 deletions(-) diff --git a/.github/workflows/bridge.yml b/.github/workflows/bridge.yml index 3208a7437..d2f57a548 100644 --- a/.github/workflows/bridge.yml +++ b/.github/workflows/bridge.yml @@ -60,14 +60,13 @@ jobs: tar -zxf /tmp/atomic.tar.gz -C /tmp if: steps.cmfgen-cache.outputs.cache-hit != 'true' - - name: Setup carsus environment - uses: conda-incubator/setup-miniconda@v2 + - uses: mamba-org/setup-micromamba@v1 with: - miniforge-variant: Mambaforge - miniforge-version: latest - environment-file: carsus/carsus_env3.yml - activate-environment: carsus - use-mamba: true + environment-file: conda-lock.yml + init-shell: bash + cache-environment: true + cache-downloads: true + environment-name: carsus - name: Install package run: pip install -e carsus/ diff --git a/.github/workflows/carsus-data-repos-config.yml b/.github/workflows/carsus-data-repos-config.yml index 28abc166a..14de0b9c3 100644 --- a/.github/workflows/carsus-data-repos-config.yml +++ b/.github/workflows/carsus-data-repos-config.yml @@ -50,14 +50,13 @@ jobs: fi done - - name: Setup carsus environment - uses: conda-incubator/setup-miniconda@v2 + - uses: mamba-org/setup-micromamba@v1 with: - miniforge-variant: Mambaforge - miniforge-version: latest - environment-file: carsus/carsus_env3.yml - activate-environment: carsus - use-mamba: true + environment-file: conda-lock.yml + init-shell: bash + cache-environment: true + cache-downloads: true + environment-name: carsus - name: Install package run: pip install -e carsus/ diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml index cbd5210bf..d97f3238f 100644 --- a/.github/workflows/docs-build.yml +++ b/.github/workflows/docs-build.yml @@ -77,14 +77,13 @@ jobs: tar -zxf /tmp/atomic.tar.gz -C /tmp if: steps.cmfgen-cache.outputs.cache-hit != 'true' - - name: Setup environment - uses: conda-incubator/setup-miniconda@v2 + - uses: mamba-org/setup-micromamba@v1 with: - miniforge-variant: Mambaforge - miniforge-version: latest - environment-file: carsus_env3.yml - activate-environment: carsus - use-mamba: true + environment-file: conda-lock.yml + init-shell: bash + cache-environment: true + cache-downloads: true + environment-name: carsus - name: Install package shell: bash -l {0}