From e50122e051f9168773a70d86cdb21afdadf0e03e Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 11 May 2023 15:30:16 +0200 Subject: [PATCH] Switch to setup-micromamba --- .github/actions/setup-conda/action.yml | 12 ++---------- .github/workflows/package-checks.yml | 8 +++----- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/actions/setup-conda/action.yml b/.github/actions/setup-conda/action.yml index 700197e400c5f6..a12102dc25f9ec 100644 --- a/.github/actions/setup-conda/action.yml +++ b/.github/actions/setup-conda/action.yml @@ -6,20 +6,12 @@ inputs: 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: - 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' - condarc-file: ci/condarc.yml - cache-env: true + cache-environment: true cache-downloads: true diff --git a/.github/workflows/package-checks.yml b/.github/workflows/package-checks.yml index db25719a016fd6..6ff3d3b0a3b98d 100644 --- a/.github/workflows/package-checks.yml +++ b/.github/workflows/package-checks.yml @@ -67,17 +67,15 @@ 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: | + create-args: >- python=${{ matrix.python-version }} boa conda-verify - channels: conda-forge 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 .