Skip to content

Fix macOS CI failure: replace mamba with pip in build-linux job - #40

Merged
xumi1993 merged 2 commits into
mainfrom
copilot/fix-github-actions-job
Jul 17, 2026
Merged

xumi1993 merged 2 commits into
mainfrom
copilot/fix-github-actions-job

Conversation

Copilot AI commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

libmamba fails to codesign libffi on macOS GitHub Actions runners (Could not codesign executable: Broken pipe), causing all build-linux (macos-latest, *) matrix jobs to fail.

Changes

  • .github/workflows/build-test-conda.yml: In the build-linux job, replace conda-incubator/setup-miniconda + mamba install with actions/setup-python@v5 + pip install
    • All dependencies (numpy scipy h5py pandas xarray hatchling tqdm) are available on PyPI with pre-built wheels for both Linux and macOS — conda is unnecessary here
    • The test job (Ubuntu-only) is unchanged

Before:

- name: Set up Python
  uses: conda-incubator/setup-miniconda@v3
  with:
    python-version: ${{ matrix.python-version }}
    mamba-version: "*"
    channels: conda-forge
- name: Install dependencies
  run: |
    mamba install numpy scipy h5py pandas xarray hatchling tqdm
    python -m pip install --upgrade pip
    pip install .

After:

- name: Set up Python
  uses: actions/setup-python@v5
  with:
    python-version: ${{ matrix.python-version }}
- name: Install dependencies
  run: |
    python -m pip install --upgrade pip
    pip install numpy scipy h5py pandas xarray hatchling tqdm
    pip install .

Copilot AI changed the title [WIP] Fix failing GitHub Actions job build-linux (macos-latest, 3.11) Fix macOS CI failure: replace mamba with pip in build-linux job Jul 15, 2026
Copilot AI requested a review from xumi1993 July 15, 2026 13:35
@xumi1993
xumi1993 marked this pull request as ready for review July 17, 2026 13:56
@xumi1993
xumi1993 requested a review from Copilot July 17, 2026 13:57
@xumi1993
xumi1993 merged commit 9946d6d into main Jul 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the CI workflow to avoid conda/mamba in the build-linux matrix job (which also runs on macos-latest) by switching to actions/setup-python and installing dependencies via pip, addressing macOS failures caused by libmamba codesigning.

Changes:

  • Replaced conda-incubator/setup-miniconda + mamba install with actions/setup-python@v5 + pip install in the build-linux job.
  • Kept the Ubuntu-only test job unchanged.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +30 to 31
pip install numpy scipy h5py pandas xarray hatchling tqdm
pip install .
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.

3 participants