|
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. |
2 | 4 |
|
| 5 | + |
3 | 6 | [](https://github.com/mamba-org/provision-with-micromamba/actions?query=workflow%3Atest)
|
4 | 7 |
|
| 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 | +
|
5 | 108 | GitHub Action to provision a CI instance using [micromamba](https://github.com/mamba-org/mamba#micromamba).
|
6 | 109 |
|
7 | 110 | ## Dependencies
|
|
0 commit comments