mamba-org / setup-micromamba

GitHub Action to set up micromamba
MIT License
105 stars 16 forks source link

Windows: micromamba not a valid command #86

Closed jdegenstein closed 1 year ago

jdegenstein commented 1 year ago

I am trying to migrate from provision-micromamba to setup-micromamba and running to an issue only on my Windows runners. For some reason when the runner attempts to execute micromamba info I get the following error:

micromamba : The term 'micromamba' is not recognized as the name of a cmdlet, function, script file, or operable ...

I have tried to initialize powershell, but that did not seem to help.

...
build-windows:
    runs-on: windows-latest
    steps:
    - uses: actions/checkout@v3
    - uses: mamba-org/setup-micromamba@v1
      with:
        environment-name: test
        environment-file: environment.yml
        init-shell: >-
            powershell
        create-args: >-
            python=3.10
    - name: pip install cadquery CQ-editor ... etc
      shell: powershell
...

Full source file here: https://github.com/jdegenstein/jmwright-CQ-Editor/blob/main/.github/workflows/pyinstaller-builds-actions-PIP-TAR.yml

pavelzw commented 1 year ago

This should work. Are you sure that you ran the workflow on the correct workflow files?

When clicking on your failed workflows it shows a different version without init-shell: powershell

https://github.com/jdegenstein/jmwright-CQ-Editor/actions/runs/5280303187/workflow

image image image

jdegenstein commented 1 year ago

Gah, I must have pressed commit after restarting the build. Sorry about that and thank you for your help!