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

Setting up miniforge and a specific python version #379

Open
javierggt opened this issue Dec 9, 2024 · 1 comment
Open

Setting up miniforge and a specific python version #379

javierggt opened this issue Dec 9, 2024 · 1 comment

Comments

@javierggt
Copy link

Hi,

I am trying to setup and environment using miniforge (latest) and a specific python version (3.11). In the following workflow, the python-version argument is ignored, and I get python 3.12. If I remove the miniforge-version line, then I get python 3.11, but I would like to use miniforge.

on:
  repository_dispatch:
    types:
      - miniforge-test

jobs:
  build:
    runs-on: ubuntu-latest
    name: Setup Miniforge
    steps:
    - name: Setup Conda Environment
      uses: conda-incubator/setup-miniconda@v3
      with:
        miniforge-version: latest
        python-version: 3.11
    - name: Env List
      run: |
        conda config --show channels
        conda list

I'm not doing anything wrong, am I?

@javierggt
Copy link
Author

and if I use the following (not using miniforge, but trying to remove the default channels), I can still see the anaconda channels in the last step

on:
  repository_dispatch:
    types:
      - miniforge

jobs:
  build:
    runs-on: ubuntu-latest
    name: Miniforge
    steps:
    - name: Setup Conda Environment
      uses: conda-incubator/setup-miniconda@v3
      with:
        python-version: 3.11
        conda-remove-defaults: "true"
        channels: conda-forge
    - name: Env List
      run: |
        conda config --show channels
        conda list

Basically, I want python 3.11, conda-forge, and no anaconda channels, but I don't seem to find the way to do it.

I also want mamba, but I'd take anything that works, and getting the right channels takes priority. Miniforge would be what I want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant