From 4f684738da559fff1ecdc9e0eac2842af372a4db Mon Sep 17 00:00:00 2001 From: agrouaze Date: Mon, 2 Dec 2024 16:02:05 +0100 Subject: [PATCH] use micromamba instead of conda and change the environement filename --- .github/workflows/conda-feedstock-check.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/conda-feedstock-check.yml b/.github/workflows/conda-feedstock-check.yml index 8eff425..01324cb 100644 --- a/.github/workflows/conda-feedstock-check.yml +++ b/.github/workflows/conda-feedstock-check.yml @@ -38,14 +38,15 @@ jobs: steps: - uses: actions/checkout@v4 - name: Strip python version - run: cat environment.yml | egrep -vw python > environment-nopython.yml - - uses: conda-incubator/setup-miniconda@v3 + run: cat ci/requirements/environment.yaml | egrep -vw python > environment-nopython.yml + - uses: mamba-org/setup-micromamba@v2 with: - auto-update-conda: true - activate-environment: xsarsea - environment-file: environment-nopython.yml - condarc-file: condarc.yml - python-version: ${{ matrix.python-version }} + environment-file: ${{ env.CONDA_ENV_FILE }} + environment-name: xsarsea-tests + cache-environment: true + cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}" + create-args: >- + python=${{matrix.python-version}} - name: install xsarsea from feedstock run: |