Skip to content

fix: macOS CI - replace missing $CONDA with setup-miniconda action - #3

Merged
AxelHenningsson merged 3 commits into
mainfrom
copilot/fix-failing-github-actions-job
Jul 28, 2026
Merged

fix: macOS CI - replace missing $CONDA with setup-miniconda action#3
AxelHenningsson merged 3 commits into
mainfrom
copilot/fix-failing-github-actions-job

Conversation

Copilot AI commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

The build-mac CI job was failing because macOS GitHub-hosted runners no longer pre-install Miniconda, so $CONDA is unset and conda: command not found (exit 127).

Changes

  • python-package-conda-macos-py39.yml
    • Replace actions/setup-python + manual echo $CONDA/bin >> $GITHUB_PATH with conda-incubator/setup-miniconda@v3, which installs conda reliably across all runners
    • Drop redundant conda install python=3.8 (version now set via setup-miniconda input)
    • Add shell: bash -el {0} to downstream steps (required for conda env activation)
- name: Set up conda with Python 3.8
  uses: conda-incubator/setup-miniconda@v3
  with:
    python-version: '3.8'
    auto-update-conda: true
- name: Install dependencies
  shell: bash -el {0}
  run: |
    conda install -c astra-toolbox astra-toolbox
    ...

The macOS GitHub Actions runner no longer provides conda pre-installed
via the $CONDA environment variable, causing 'conda: command not found'.

Replace the manual $CONDA path approach and actions/setup-python with
conda-incubator/setup-miniconda@v3 which installs conda reliably.
Also add the required 'bash -el {0}' shell for conda environment
activation in subsequent steps.
Copilot AI changed the title [WIP] Fix the failing GitHub Actions job build-mac fix: macOS CI - replace missing $CONDA with setup-miniconda action Jul 28, 2026
Copilot AI requested a review from AxelHenningsson July 28, 2026 09:36
@AxelHenningsson
AxelHenningsson marked this pull request as ready for review July 28, 2026 10:55
@AxelHenningsson
AxelHenningsson merged commit b9f473c into main Jul 28, 2026
2 checks passed
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