You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we have six workflows (e.g., ci_dos.yml) that use the mamba-org/setup-micromamba action to create a conda environment. Each workflow has different purposes so they install different packages and sometimes different pinned versions. It's impossible to create a single environment.yml that can be used in different workflows. Thus, we have to pass a list of packages to the creat-args option of the mamba-org/setup-micromamba action. E.g.,
It means we have to update several workflow files if we want to pin a package, add a new required/optional package, or add a new dev package, which is tedious.
To avoid maintaining the package list in so many places, we can write a bash script that can create environment.yml files on the fly for different purposes. Then we can use the generated environment.yml file in the mamba-org/setup-micromamba action.
Here is an initial/incompleted version of the script:
Not so sure about this. I feel like having the dependency list in each YAML file is more explicit/readable, and we don't pin or add new dependencies regularly, so the bash script seems to be overcomplicating things a bit. Can we maybe vote yes 👍 or no 👎 on the top post to see if we should go ahead on this?
Currently, we have six workflows (e.g.,
ci_dos.yml
) that use themamba-org/setup-micromamba
action to create a conda environment. Each workflow has different purposes so they install different packages and sometimes different pinned versions. It's impossible to create a singleenvironment.yml
that can be used in different workflows. Thus, we have to pass a list of packages to thecreat-args
option of themamba-org/setup-micromamba
action. E.g.,pygmt/.github/workflows/ci_tests.yaml
Lines 106 to 122 in b873c36
It means we have to update several workflow files if we want to pin a package, add a new required/optional package, or add a new dev package, which is tedious.
To avoid maintaining the package list in so many places, we can write a bash script that can create
environment.yml
files on the fly for different purposes. Then we can use the generatedenvironment.yml
file in themamba-org/setup-micromamba
action.Here is an initial/incompleted version of the script:
By default, it produces:
If we define an environment variable
export NUMPY_VERSION=1.26
, it produces:Comments?
The text was updated successfully, but these errors were encountered: