From 4abbbb2d67e84ceaa28cabf3bd52b64d61072556 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Fri, 22 Sep 2023 19:38:53 +1200 Subject: [PATCH] Install conda-lock with mamba for faster solves 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. --- .github/workflows/conda-lock-command.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/conda-lock-command.yml b/.github/workflows/conda-lock-command.yml index aefb963..7495787 100644 --- a/.github/workflows/conda-lock-command.yml +++ b/.github/workflows/conda-lock-command.yml @@ -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