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

Can't use the action on macos-12 executor #229

Closed
ljmf00 opened this issue May 13, 2022 · 6 comments
Closed

Can't use the action on macos-12 executor #229

ljmf00 opened this issue May 13, 2022 · 6 comments
Assignees
Labels
type:bug Something isn't working
Milestone

Comments

@ljmf00
Copy link

ljmf00 commented May 13, 2022

The new macos-12 executor is available as public beta for Github Actions. I'm experiencing issues setting up miniconda with this action.

Even though I didn't test it in an isolated environment, I believe this can be reproduced with the following workflow:

jobs:
  conda:
    runs-on: macos-12
    steps:
      - name: "Setup miniconda"
        uses: conda-incubator/setup-miniconda@v2
        with:
          auto-update-conda: true
          python-version: '3.7'
          auto-activate-base: true
          allow-softlinks: true

Log:

Run conda-incubator/setup-miniconda@v2
  with:
    auto-update-conda: true
    python-version: 3.7
    auto-activate-base: true
    allow-softlinks: true
    activate-environment: test
    remove-profiles: true
    architecture: x64
    clean-patched-environment-file: true
  env:
    PYTEST_ADDOPTS: --showlocals -vv --durations=10
    PY_COLORS: 1
    TOX_PARALLEL_NO_SPINNER: 1
    DOTNET_ROOT: /Users/runner/.dotnet
Gathering Inputs...
Creating bootstrap condarc file in /Users/runner/.condarc...
Ensuring installer...
  Can we use bundled Miniconda?
  ... will use bundled Miniconda.
Error: No installed conda 'base' enviroment found at
@goanpeca
Copy link
Member

Hi @ljmf00 thanks for reporting the issue.

I'm experiencing issues setting up miniconda with

What seems to be the issue specifically? Could you point us to the failing run?

Cheers!

@goanpeca goanpeca added this to the v2.2.0 milestone May 26, 2022
@goanpeca goanpeca self-assigned this May 26, 2022
@goanpeca goanpeca added the type:bug Something isn't working label May 26, 2022
@goanpeca goanpeca mentioned this issue May 26, 2022
@goanpeca
Copy link
Member

The macos-12 runners do not provide a bundled conda

https://github.com/actions/virtual-environments/blob/main/images/macos/macos-12-Readme.md
vs
https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md

You could overcome this issue by specifying a miniconda-version or a miniforge version so that the action installs a new one instead of trying to find an inexistent one.

@goanpeca
Copy link
Member

Submitted this issue actions/runner-images#5623

@ljmf00
Copy link
Author

ljmf00 commented May 26, 2022

The macos-12 runners do not provide a bundled conda

https://github.com/actions/virtual-environments/blob/main/images/macos/macos-12-Readme.md vs https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md

You could overcome this issue by specifying a miniconda-version or a miniforge version so that the action installs a new one instead of trying to find an inexistent one.

Ah ok, makes sense to me. I'll try and give some feedback here, if worth it 😊 . Feel free to close this if you don't track the upstream issue.

@goanpeca
Copy link
Member

@ljmf00 it seems the new machines have been updated, so everything should be working fine. Rerunning the test PR I opened to check.

If everything runs we can close this :)

@goanpeca
Copy link
Member

Ok everything is working now as expected. Thanks a lot for flagging this @ljmf00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants