From 1486bb5ab11edd41458bfb592b1a1de58c7b580b Mon Sep 17 00:00:00 2001 From: Oliver Sanders Date: Mon, 6 Jan 2025 17:55:18 +0000 Subject: [PATCH] . --- .github/actions/create-conda-envs/action.yml | 16 ++++++---------- .github/workflows/create-conda-envs.yml | 2 +- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/actions/create-conda-envs/action.yml b/.github/actions/create-conda-envs/action.yml index 56eb58db44..7e848f9f6b 100644 --- a/.github/actions/create-conda-envs/action.yml +++ b/.github/actions/create-conda-envs/action.yml @@ -29,14 +29,10 @@ runs: fi echo "CYLC_RELEASE=$CYLC_RELEASE" >> "${GITHUB_ENV}" - - shell: bash - working-directory: ${{ inputs.working_directory }} - run: | - # use mamba (much faster) - # use this when released: https://github.com/mamba-org/setup-mamba - conda install -n base -c conda-forge -y mamba + - name: setup micromamba + uses: mamba-org/setup-micromamba@v2 - - shell: bash + - shell: bash -el {0} working-directory: ${{ inputs.working_directory }} run: | for env_file in $(echo src/reference/environments/envs/*.yml); do @@ -50,8 +46,8 @@ runs: "${env_file}" \ > "${new_env_file}" # create the env - conda run -n base mamba env create -f "${new_env_file}" -n cylc-env + micromamba env create -f "${new_env_file}" -n cylc-env # test the env - conda run -n cylc-env cylc version - conda env remove -n cylc-env + micromamba run -n cylc-env cylc version + micromamba env remove -n cylc-env done diff --git a/.github/workflows/create-conda-envs.yml b/.github/workflows/create-conda-envs.yml index 42ce7171ff..e9197bd136 100644 --- a/.github/workflows/create-conda-envs.yml +++ b/.github/workflows/create-conda-envs.yml @@ -24,7 +24,7 @@ jobs: timeout-minutes: 30 strategy: matrix: - python: [3.7, 3.8, 3.9] + python: [3.8, 3.9] steps: - name: checkout cylc-doc uses: actions/checkout@v4