-
Notifications
You must be signed in to change notification settings - Fork 71
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
Micromamba + cache full example #66
Comments
Hi @adriangb thanks for the suggestion. When
I don't really see an advantage over bundled miniconda (what comes with the |
I may be misunderstanding how this action works, but... Currently this uses the bundled |
Yep. Unless micromamba comes preinstalled in the Github Runners, which would avoid a download and an install step, then I see no real gain. There may be a very small gain 🤷 , but I would say it is marginal as long as we depend on a network to download things. |
That makes sense. So if I want the fastest installs, would the following be my best bet: - name: Cache conda/mamba
uses: actions/cache@v2
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: conda-${{ runner.os }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('test-env.yml') }}
- name: Setup mamba
uses: goanpeca/setup-miniconda@v1
with:
channels: conda-forge
activate-environment: test
mamba-version: "*"
use-only-tar-bz2: true # requried for caching
environment-file: test-env.yml
- name: Show conda environment
shell: bash -l {0}
run: |
mamba list |
Yes, but it may depend on the other items I mentioned before:
Depending on how small/big your env is, it might be worth to cache, or it may not be worth it. And I do not have a rule of thumb.... 🤷 |
Makes sense, I'll have to test both ways! |
Hi, I'm trying to get the absolute fastest times, especially on windows. I see that over at mamba, micromamba is soon going to support windows soon (link) and support for installing form files at some point (mamba-org/mamba#461). It would be really cool to be able to use this action + cache + micromamba for what I assume is going to be blazing fast installs. Once they get windows working (or maybe before) it would be great to get support and a full example of that combination here.
I would imagine this would look something like this:
Hopefully this would the first run download and install
micromamba
and then usemicromamba
to install thetest
environment usingtest-env.yml
.Subsequent runs would then use
micromamba
from the cache (i.e. no need to re-download and re-installmicromamba
since it's a single file) and just activate/update thetest
env.The text was updated successfully, but these errors were encountered: