From e47f1dae6588dae0e728dd30b4d6cc811115b118 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Mon, 18 Sep 2023 15:31:30 +0200 Subject: [PATCH 1/3] Switch to `mamba-org/setup-micromamba` --- .github/workflows/main.yml | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f310cd6..8019527 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,30 +15,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Cache conda - uses: actions/cache@v3 - env: - # Increase this value to reset cache if .binder/environment.yml has not changed - CACHE_NUMBER: 0 + - name: Install mamba + uses: mamba-org/setup-micromamba@v1 with: - path: ~/conda_pkgs_dir - key: - ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('.binder/environment.yml') }} - - uses: conda-incubator/setup-miniconda@v2 - with: - mamba-version: ">=1.4.0" - # Defaults is added automatically - channels: conda-forge - channel-priority: "strict" - activate-environment: jupyterlab-demo + micromamba-version: '1.5.1-0' environment-file: .binder/environment.yml - # The following option is blocking the environment resolution (newer versions are not found) - # use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! + environment-name: jupyterlab-demo + cache-environment: true - run: | - conda info - conda list - conda config --show-sources - conda config --show + mamba info + mamba list + mamba config sources + conda config list printenv | sort - run: | invoke r --env-name=jupyterlab-demo From d313fdae931ee36ef64b337ee5015121934b202c Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Mon, 18 Sep 2023 15:37:54 +0200 Subject: [PATCH 2/3] Update command --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8019527..793ded9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,10 +23,10 @@ jobs: environment-name: jupyterlab-demo cache-environment: true - run: | - mamba info - mamba list - mamba config sources - conda config list + micromamba info + micromamba list + micromamba config sources + micromamba config list printenv | sort - run: | invoke r --env-name=jupyterlab-demo From 4a04bb7bec56aa3c33a9107af6e4e777286ddffa Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Mon, 18 Sep 2023 15:40:26 +0200 Subject: [PATCH 3/3] Add mamba --- .binder/environment.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.binder/environment.yml b/.binder/environment.yml index 77ec411..6cd3b33 100644 --- a/.binder/environment.yml +++ b/.binder/environment.yml @@ -4,6 +4,7 @@ channels: dependencies: # !! you can only use single `=` to set a version. Otherwise it will break the update job - invoke=2.2.0 +- mamba - packaging - pyyaml # applications