Skip to content

Commit 3c96c0c

Browse files
authored
Add deprecation warning (#122)
1 parent e2b397b commit 3c96c0c

File tree

3 files changed

+106
-1
lines changed

3 files changed

+106
-1
lines changed

README.md

Lines changed: 104 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,110 @@
1-
# provision-with-micromamba
1+
<h3 align="center">⛔️ This project is deprecated and no longer gets maintained!</h3>
2+
3+
Please use the [mamba-org/setup-micromamba](https://github.com/mamba-org/setup-micromamba) action instead.
24

5+
![Deprecated](https://img.shields.io/badge/Status-Deprecated-critical)
36
[![test](https://github.com/mamba-org/provision-with-micromamba/workflows/test/badge.svg)](https://github.com/mamba-org/provision-with-micromamba/actions?query=workflow%3Atest)
47

8+
# Migration to `setup-micromamba`
9+
10+
This action is deprecated and will no longer get maintained due to it being superseded by [`setup-micromamba`](https://github.com/mamba-org/setup-micromamba).
11+
See [mamba-org/setup-micromamba#70](https://github.com/mamba-org/setup-micromamba/issues/70), [mamba-org/provision-with-micromamba#103](https://github.com/mamba-org/provision-with-micromamba/issues/103) and [mamba-org/provision-with-micromamba#114](https://github.com/mamba-org/provision-with-micromamba/issues/114) for reasons.
12+
13+
The most important difference for migrating is that in `setup-micromamba` you need to specify the `environment-file` argument while `provision-with-micromamba` assumed `environment.yml` by default.
14+
15+
`extra-specs` is now called `create-args` and should be used for all arguments that `micromamba create` supports.
16+
17+
## Example 1 (`environment-file`, `extra-specs`, `cache-env`, semantic versioning)
18+
19+
```yml
20+
- uses: mamba-org/provision-with-micromamba@v16
21+
with:
22+
extra-specs: |
23+
python=3.10
24+
numpy
25+
cache-env: true
26+
```
27+
28+
becomes
29+
30+
```yml
31+
# we now use semantic versioning for the action
32+
# you could also use `[email protected]`
33+
# or the git sha directly `...@5d5dbebd87f7b9358c403c7a66651fa92b310105`
34+
- uses: mamba-org/setup-micromamba@v1
35+
with:
36+
# environment-file is not assumed anymore
37+
environment-file: environment.yml
38+
create-args: >- # beware the >- instead of |, we don't split on newlines but on spaces
39+
python=3.10
40+
numpy
41+
# now called cache-environment
42+
cache-environment: true
43+
```
44+
45+
## Example 2 (`micromamba-version`, `environment-file: false`, `channels`)
46+
47+
```yml
48+
- uses: mamba-org/provision-with-micromamba@main
49+
with:
50+
micromamba-version: '1.2.0'
51+
environment-file: false
52+
environment-name: myenv
53+
extra-specs: |
54+
python=3.10
55+
numpy
56+
channels: conda-forge
57+
```
58+
59+
becomes
60+
61+
```yml
62+
- uses: mamba-org/setup-micromamba@v1
63+
with:
64+
# all supported versions are fetched from https://github.com/mamba-org/micromamba-releases/releases now and contain the build number
65+
micromamba-version: '1.2.0-1'
66+
# don't provide environment-file as argument if you don't want to specify one
67+
environment-name: myenv
68+
create-args: >-
69+
python=3.10
70+
numpy
71+
# conda-forge is the default channel now and does not need to be specified
72+
```
73+
74+
## Example 3 (`channels`, `channel-priority`)
75+
76+
```yml
77+
- uses: mamba-org/provision-with-micromamba@v16
78+
with:
79+
environment-file: false
80+
extra-specs: |
81+
python=3.10
82+
numpy
83+
channels: conda-forge,bioconda
84+
channel-priority: strict
85+
```
86+
87+
becomes
88+
89+
```yml
90+
- uses: mamba-org/setup-micromamba@v1
91+
with:
92+
create-args: >-
93+
python=3.10
94+
numpy
95+
# arguments such as channel or channel-priority that belong in the condarc should be specified there
96+
# or in a .condarc file which can be referenced with `condarc-file: .condarc`
97+
condarc: |
98+
channels:
99+
- conda-forge
100+
- bioconda
101+
channel_priority: strict
102+
```
103+
104+
---
105+
106+
# provision-with-micromamba
107+
5108
GitHub Action to provision a CI instance using [micromamba](https://github.com/mamba-org/mamba#micromamba).
6109
7110
## Dependencies

dist/main/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ async function installEnvironment (inputs, envFilePath, envYaml) {
327327
// --- Main ---
328328

329329
async function main () {
330+
core.warning('This action is deprecated and no longer maintained. Please use mamba-org/setup-micromamba instead. See `https://github.com/mamba-org/provision-with-micromamba#migration-to-setup-micromamba` for a migration guide.')
330331
// Using getInput is not safe in a post action for templated inputs.
331332
// Therefore, we need to save the input values beforehand to the state.
332333
const inputs = {

0 commit comments

Comments
 (0)