Skip to content

Fix macOS matrix, update first-party GitHub Actions, fix use-external-python, update all requirements and linters#24

Open
RytoEX wants to merge 5 commits intomarian-code:masterfrom
RytoEX:update-action
Open

Fix macOS matrix, update first-party GitHub Actions, fix use-external-python, update all requirements and linters#24
RytoEX wants to merge 5 commits intomarian-code:masterfrom
RytoEX:update-action

Conversation

@RytoEX
Copy link

@RytoEX RytoEX commented Feb 25, 2026

This PR can supersede #22 and #23 if desired. This PR:

  • Fixes the macOS matrix excludes oversight from Update macOS runner from macOS 13 to macOS 14 #21
  • Updates all first-party GitHub Actions to avoid warnings about node20
  • Fixes the use-external-python action input
  • Updates all Python requirements and linters to the latest stable versions (as of 2026-02-25)
  • Updates the example code to use v4 of this action

You can see successful runs on my repo here where the specified Python versions match the logs:

Fix an oversight from ab76874
where the matrix was not properly updated to exclude older Python.
marian-code/python-lint-annotate@fd01666
broke setting the Python version for the action.

While use-external-python works in
.github/workflows/test-python-install.yml, it does not work in the
action itself. This is because custom action inputs cannot use true
booleans, so the use-external-python input is a string type. This string
then always gets interpreted as "true", so the "Setup python" condition
always resolves to "false" due to negation.

Use fromJSON to correctly convert the strings "true" and "false" to
boolean types.
This also raises the minimum required Python version to 3.10, so update
the supported Python version range to 3.10-3.14.

Note that Python 3.10 will not install correctly on macOS 14+, so it is
still excluded from those runners.
@RytoEX
Copy link
Author

RytoEX commented Feb 27, 2026

To validate that the version selection is working, I created a new branch on my repo using a naive string check against the version number: https://github.com/RytoEX/python-lint-annotate/tree/refs/heads/test-python-versions

Here is the test run: https://github.com/RytoEX/python-lint-annotate/actions/runs/22473621753

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