Skip to content

Fix build-mac: install conda via setup-miniconda instead of relying on missing $CONDA - #2

Closed
AxelHenningsson with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-failing-build-mac-job
Closed

Fix build-mac: install conda via setup-miniconda instead of relying on missing $CONDA#2
AxelHenningsson with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-failing-build-mac-job

Conversation

Copilot AI commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

macos-latest runners (Apple Silicon) no longer have Miniconda pre-installed, so $CONDA is empty and conda: command not found kills the job immediately.

Changes

  • .github/workflows/python-package-conda-macos-py39.yml
    • Replace actions/setup-python@v2 + the broken echo $CONDA/bin >> $GITHUB_PATH step with conda-incubator/setup-miniconda@v3, which reliably installs and configures conda on any runner platform
    • Add shell: bash -el {0} to dependent steps — required by setup-miniconda so conda's shell hooks are sourced before each command
    • Drop the now-redundant conda install python=3.8 (version is managed by the setup action)

Copilot AI changed the title [WIP] Fix failing GitHub Actions job build-mac Fix build-mac: install conda via setup-miniconda instead of relying on missing $CONDA Jul 28, 2026
Copilot AI requested a review from AxelHenningsson July 28, 2026 09:27
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

Successfully merging this pull request may close these issues.

2 participants