Skip to content

Fix macOS CI: install gfortran and pin runner to macos-15 - #31

Merged
saudzahirr merged 1 commit into
mainfrom
fix/ci-failures
Aug 5, 2026
Merged

Fix macOS CI: install gfortran and pin runner to macos-15#31
saudzahirr merged 1 commit into
mainfrom
fix/ci-failures

Conversation

@saudzahirr

Copy link
Copy Markdown
Collaborator

macOS build

The macOS setup step ran brew --prefix gcc, which only prints the install
prefix — it never installs gcc. gfortran was therefore absent and the
f2py/meson build could not find a Fortran compiler.

It also ran on macos-latest, which is now macOS 26. Those Homebrew bottles
carry minos 26.0, which delocate rejects against the
MACOSX_DEPLOYMENT_TARGET=15.0 wheel target these workflows still set.

This applies the fix already proven in eggzec/pyswarm:
a real brew install gcc, PATH export, a gfortran --version verification
step, and the runner pinned to macos-15.

Verification

ruff check and ruff format --diff both pass using this workflow's own
command, and the test suite passes locally via uv.

Not verified: the macOS steps could not be exercised locally (no macOS
runner). Worth watching the first CI run on this PR.

🤖 Generated with Claude Code

The macOS setup step ran `brew --prefix gcc`, which only prints the
install prefix - it never installs gcc. gfortran was therefore absent
and the f2py/meson build could not find a Fortran compiler.

Also pin the runner to macos-15. `macos-latest` is now macOS 26, whose
Homebrew bottles carry minos 26.0; delocate rejects those against the
MACOSX_DEPLOYMENT_TARGET=15.0 wheel target these workflows still set.

Mirrors the fix already applied in eggzec/pyswarm.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@saudzahirr
saudzahirr merged commit 31aa248 into main Aug 5, 2026
24 checks passed
@saudzahirr
saudzahirr deleted the fix/ci-failures branch August 5, 2026 05: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.

1 participant