Skip to content

Switch to setup-micromamba #53168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions .github/actions/setup-conda/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,14 @@ 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:
- 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'
environment-name: test
condarc-file: ci/condarc.yml
cache-env: true
cache-environment: true
cache-downloads: true
8 changes: 3 additions & 5 deletions .github/workflows/package-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
extra-specs: >-
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 .