Skip to content

Commit

Permalink
Install conda-lock with mamba for faster solves
Browse files Browse the repository at this point in the history
Default conda solver is too slow, so using mamba solver instead. Need to install `conda-lock` from conda-forge instead of PyPI to also get `mamba`. Also updated solver environment to use Python 3.11 and remove urllib3 pin.
  • Loading branch information
weiji14 committed Sep 22, 2023
1 parent 796e7bc commit 4abbbb2
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/conda-lock-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,15 @@ jobs:
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
ref: ${{ github.event.client_payload.pull_request.head.ref }}

# Setup Python environment
- uses: actions/setup-python@v4
# Install conda-lock library with Micromamba
- name: Install conda-lock with Micromamba
uses: mamba-org/setup-micromamba@v1
with:
python-version: '3.10'

# Install conda-lock library
# HACK: Temporarily pin urllib3<2 to resolve incompatibilities:
# https://github.com/ionrock/cachecontrol/issues/292
- name: Install conda-lock
run: 'pip install conda-lock "urllib3<2"'
environment-name: conda-lock-env
create-args: >-
python=3.11
conda-lock
mamba
# Run "conda-lock" for linux-64 only
- name: Run conda-lock
Expand Down

0 comments on commit 4abbbb2

Please sign in to comment.