Repository navigation
Fix macOS CI job using wrong Python - #158
Merged
Merged
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
hannahlanzrath
marked this pull request as ready for review
November 30, 2026 15:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
test-stage (macos-latest, 3.13)job fails since about 2026-11-17 while installing dependencies (Failed to locate glpk.hwhen 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 fromsetup-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
bashwithout-l, so all jobs use the Python fromsetup-python.apt-getonly on Linux. On macOS it loggedapt-get: command not found.git lfs installstill runs on macOS.fail-fast: false, so one failing job no longer cancels the others.