Skip to content
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

Improve usage of setup-miniconda #249

Merged
merged 3 commits into from
Jan 13, 2023
Merged

Commits on Jan 12, 2023

  1. setup-miniconda: Use default value for channel-priority

    Based on the input description in action.yml¹, the default value is
    "flexible", and "true" is just an alias to "flexible".
    
    ¹ https://github.com/conda-incubator/setup-miniconda/blob/7e642bb2e4ca56ff706818a0febf72bb226d348d/action.yml#L173-L186
    victorlin committed Jan 12, 2023
    Configuration menu
    Copy the full SHA
    e1036f6 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2023

  1. setup-miniconda: Use default value for activate-environment

    Based on the input description in action.yml¹, the default value is
    already "test" which means it should be auto-activated.
    
    ¹ https://github.com/conda-incubator/setup-miniconda/blob/7e642bb2e4ca56ff706818a0febf72bb226d348d/action.yml#L79-L91
    victorlin committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    2e2f857 View commit details
    Browse the repository at this point in the history
  2. setup-miniconda: Use Mambaforge

    The option to use mamba-version in this action is still marked as
    experimental and has shown to be problematic with transient failures.
    
    An alternative is to use Mambaforge, which is a Miniforge variant that
    comes with Mamba in the base environment. It uses the conda-forge
    channel as the only default channel¹.
    
    However, conda-forge must be added to the channels input to the
    setup-miniconda action, since it creates and uses a separate condarc
    file which contains the specified channels along with defaults², and
    defaults should be avoided at least for the Python version³.
    
    ¹ https://github.com/conda-forge/miniforge/blob/871e98647a95b99a769dd9f40669d06c44514bca/README.md
    ² #249 (comment)
    ³ #249 (comment)
    victorlin committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    4a76497 View commit details
    Browse the repository at this point in the history