From b251fe9752147e5266709ce9cb51ce9a3bbdbcd7 Mon Sep 17 00:00:00 2001 From: Jonas Haag Date: Wed, 10 May 2023 17:54:53 +0200 Subject: [PATCH 1/4] Switch to setup-micromamba --- .github/actions/setup-conda/action.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/actions/setup-conda/action.yml b/.github/actions/setup-conda/action.yml index 700197e400c5f..b9e306e2e2194 100644 --- a/.github/actions/setup-conda/action.yml +++ b/.github/actions/setup-conda/action.yml @@ -13,13 +13,11 @@ runs: using: composite steps: - name: Install ${{ inputs.environment-file }} - uses: mamba-org/provision-with-micromamba@v15 + uses: mamba-org/setup-micromamba@v1 with: environment-file: ${{ inputs.environment-file }} environment-name: ${{ inputs.environment-name }} - extra-specs: ${{ inputs.extra-specs }} - channels: conda-forge - channel-priority: 'strict' + create-args: ${{ inputs.extra-specs }} condarc-file: ci/condarc.yml cache-env: true cache-downloads: true From 89996e67246147549a52c68864a633ba03f2aa9c Mon Sep 17 00:00:00 2001 From: Jonas Haag Date: Wed, 10 May 2023 17:56:37 +0200 Subject: [PATCH 2/4] Update package-checks.yml --- .github/workflows/package-checks.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/package-checks.yml b/.github/workflows/package-checks.yml index db25719a016fd..6db86beea5dd2 100644 --- a/.github/workflows/package-checks.yml +++ b/.github/workflows/package-checks.yml @@ -67,15 +67,13 @@ jobs: fetch-depth: 0 - name: Set up Python - uses: mamba-org/provision-with-micromamba@v15 + uses: mamba-org/setup-micromamba@v1 with: - environment-file: false environment-name: recipe-test - extra-specs: | + extra-specs: >- python=${{ matrix.python-version }} boa conda-verify - channels: conda-forge cache-downloads: true cache-env: true From 15e029141c2a7749d436fa23019e9869f8cab969 Mon Sep 17 00:00:00 2001 From: Jonas Haag Date: Fri, 12 May 2023 16:50:08 +0200 Subject: [PATCH 3/4] Update action.yml --- .github/actions/setup-conda/action.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/actions/setup-conda/action.yml b/.github/actions/setup-conda/action.yml index b9e306e2e2194..84e81b9a9297f 100644 --- a/.github/actions/setup-conda/action.yml +++ b/.github/actions/setup-conda/action.yml @@ -3,12 +3,6 @@ inputs: environment-file: description: Conda environment file to use. default: environment.yml - environment-name: - description: Name to use for the Conda environment - default: test - extra-specs: - description: Extra packages to install - required: false runs: using: composite steps: @@ -16,8 +10,7 @@ runs: uses: mamba-org/setup-micromamba@v1 with: environment-file: ${{ inputs.environment-file }} - environment-name: ${{ inputs.environment-name }} - create-args: ${{ inputs.extra-specs }} + environment-name: test condarc-file: ci/condarc.yml - cache-env: true + cache-environment: true cache-downloads: true From b8d32a16f77f3371ba0776e86b4323f53814f40e Mon Sep 17 00:00:00 2001 From: Jonas Haag Date: Fri, 12 May 2023 16:50:27 +0200 Subject: [PATCH 4/4] Update package-checks.yml --- .github/workflows/package-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/package-checks.yml b/.github/workflows/package-checks.yml index 6db86beea5dd2..0f3d4fce66282 100644 --- a/.github/workflows/package-checks.yml +++ b/.github/workflows/package-checks.yml @@ -75,7 +75,7 @@ jobs: boa conda-verify cache-downloads: true - cache-env: true + cache-environment: true - name: Build conda package run: conda mambabuild ci --no-anaconda-upload --verify --strict-verify --output --output-folder .