Skip to content

Commit 2cce838

Browse files
authored
Switch to setup-micromamba (#53168)
* Switch to setup-micromamba * Update package-checks.yml * Update action.yml * Update package-checks.yml
1 parent f9a0b87 commit 2cce838

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

.github/actions/setup-conda/action.yml

+3-12
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,14 @@ inputs:
33
environment-file:
44
description: Conda environment file to use.
55
default: environment.yml
6-
environment-name:
7-
description: Name to use for the Conda environment
8-
default: test
9-
extra-specs:
10-
description: Extra packages to install
11-
required: false
126
runs:
137
using: composite
148
steps:
159
- name: Install ${{ inputs.environment-file }}
16-
uses: mamba-org/provision-with-micromamba@v15
10+
uses: mamba-org/setup-micromamba@v1
1711
with:
1812
environment-file: ${{ inputs.environment-file }}
19-
environment-name: ${{ inputs.environment-name }}
20-
extra-specs: ${{ inputs.extra-specs }}
21-
channels: conda-forge
22-
channel-priority: 'strict'
13+
environment-name: test
2314
condarc-file: ci/condarc.yml
24-
cache-env: true
15+
cache-environment: true
2516
cache-downloads: true

.github/workflows/package-checks.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,15 @@ jobs:
6767
fetch-depth: 0
6868

6969
- name: Set up Python
70-
uses: mamba-org/provision-with-micromamba@v15
70+
uses: mamba-org/setup-micromamba@v1
7171
with:
72-
environment-file: false
7372
environment-name: recipe-test
74-
extra-specs: |
73+
extra-specs: >-
7574
python=${{ matrix.python-version }}
7675
boa
7776
conda-verify
78-
channels: conda-forge
7977
cache-downloads: true
80-
cache-env: true
78+
cache-environment: true
8179

8280
- name: Build conda package
8381
run: conda mambabuild ci --no-anaconda-upload --verify --strict-verify --output --output-folder .

0 commit comments

Comments
 (0)