Skip to content

Fix macOS CI job using wrong Python - #158

Merged
hannahlanzrath merged 3 commits into
mainfrom
ci/macos-python
Nov 30, 2026
Merged

hannahlanzrath merged 3 commits into
mainfrom
ci/macos-python

Conversation

@hannahlanzrath

Copy link
Copy Markdown
Contributor

The test-stage (macos-latest, 3.13) job fails since about 2026-11-17 while installing dependencies (Failed to locate glpk.h when building swiglpk). Because of fail-fast, the other jobs get cancelled and show as failed too. This also affects unrelated PRs such as #157.

Cause

The jobs run in a login shell (bash -l). On macOS this puts the runner's framework Python ahead of the one from setup-python, so the "3.13" job actually used the image's default Python. The runner image moved that from 3.14 to 3.15. hopsy and swiglpk have no macOS wheels for 3.15, so pip builds swiglpk from source, which needs GLPK.

Changes

  • Use bash without -l, so all jobs use the Python from setup-python.
  • Remove the venv step. Its activation did not carry over to later steps, so it had no effect.
  • Run apt-get only on Linux. On macOS it logged apt-get: command not found. git lfs install still runs on macOS.
  • Set fail-fast: false, so one failing job no longer cancels the others.

The login shell put the runner's framework Python (now 3.15) ahead of
the one installed by setup-python. hopsy and swiglpk have no wheels for
it, so pip tried to build swiglpk from source and failed. The venv step
had no effect, since activation does not carry over to later steps.
@codecov-commenter

codecov-commenter commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hannahlanzrath
hannahlanzrath marked this pull request as ready for review November 30, 2026 15:34
@hannahlanzrath
hannahlanzrath merged commit b979783 into main Nov 30, 2026
6 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