-
Notifications
You must be signed in to change notification settings - Fork 20
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
setup-micromamba
rewrite specification
#114
Comments
What will happen when you don't supply anything to I think it makes sense to allow the user just to install micromamba without any environment creation steps, maybe by setting |
Some thoughts on The debug mode is active when Since we probably cannot add See here for an example with debug turned off and here for an example with debug logging. |
Is this possible in Workflow files? |
Also, we should use dependabot to upgrade the version of |
Good point, will add
I'm not quite sure about this. I agree that you might want an empty environment but if you want micromamba only you can use micro.mamba.pm/install.sh.
Agreed!
Yes but the stuff after
Perfect! |
pnpm/action-setup is kind of similar to our use case. They also provide this functionality. |
OK added it! |
I think adding some sort of environment information, i.e. which exact package versions were installed, to the step output (maybe even optional to the job summary?) might also be helpful. |
It’s already there in the „Environment Info“ output, or are you looking for something else? |
I meant the |
Maybe adding something like |
If it is possible to add - run: pytest ...
shell: micromamba would be a nice to have. |
This would be great for me, as I have recently had issues running |
Note this: https://github.com/mamba-org/provision-with-micromamba#post-deinit |
This proposal looks great, I use this action extensively (I've been switching to this action from the mamba/conda ones whenever I get the chance) and the proposal covers all of my use cases. |
The first release of |
We're going to release a new version of
provision-with-micromamba
:setup-micromamba
(other suggestions welcome; the action's main task is to set up a Conda environment using Micromamba)We will add a upgrade hint to this repo and maybe add a warning in the GHA output.
Use cases
We'll remove some of the options of provision-with-micromamba, see here for discussion #103.
Here we'll collect some use cases that we want to support. Feel free to make more suggestions.
Env from
environment.yml
Options:
environment.yml
(no implicit default of./environment.yml
like in provision-with-micromamba).condarc
(implicit default to~/.condarc
)Env from
environment.yml
with extra specsLike above, but with an optional
extra-specs: x y z
option. This is runsEnv without
environment.yml
For tiny CI setups, options:
environment-name
to substitute the missingname:
inenvironment.yml
.condarc
Installing Micromamba only
create-env: false
to skipmicromamba create
and just download + setup Micromamba.Creating an empty env
Not sure if we should support this.
Convenience options
Implicit conda-forge
If using only extra specs and no
.condarc
is given, default toconda-forge
? Although this reuqires that we check.condarc
..condarc
as stringAllow syntax like the following?
Although this is also possible simply by using
cat
in a preceding step.Proposal
Derived from the use cases, we offer the following options:
condarc-file
: Path to a.condarc
file to consider, defaults to~/.condarc
.environment-file
: Path to environment file, no default.environment-name
: Overridename:
inenvironment.yml
and set name if not passingenvironment.yml
.extra-specs
: String with extra specs to pass tomicromamba create
.create-args
: List of strings that are passed tomicromamba create
.create-env: false
to skipmicromamba create
.micromamba-version
,cache-*
,log-level
,installer-url
,post-deinit
.The text was updated successfully, but these errors were encountered: