Skip to content
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

Switch to mamba-org/setup-micromamba #139

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
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
1 change: 1 addition & 0 deletions .binder/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
30 changes: 9 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
micromamba info
micromamba list
micromamba config sources
micromamba config list
printenv | sort
- run: |
invoke r --env-name=jupyterlab-demo
Expand Down
Loading