From 52ec42251f60c25bb5d61d9190bf57564bb1c62d Mon Sep 17 00:00:00 2001 From: lachlangrose Date: Sun, 1 Nov 2026 16:25:41 +1030 Subject: [PATCH] ci: run the linter on Python 3.12, since ubuntu-latest has no 3.9 ubuntu-latest is now Ubuntu 26.04, and actions/setup-python has no 3.9 build for it, so every linter run failed at the Set up Python step. black and ruff keep target-version py39 from pyproject.toml. Also trigger the linter when its own workflow file changes. --- .github/workflows/linter.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 4ac08271b..0c390c1c9 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -4,19 +4,23 @@ on: push: paths: - '**.py' + - .github/workflows/linter.yml pull_request: branches: - master paths: - '**.py' + - .github/workflows/linter.yml workflow_dispatch: env: # All linted packages in the workspace: the main library plus every # package under packages/ (packages/loop_common, packages/loop_interpolation, ...). PROJECT_FOLDERS: "LoopStructural packages" - PYTHON_VERSION: 3.9 + # ubuntu-latest (26.04) has no Python 3.9 build. black and ruff still + # check against py39 through target-version in pyproject.toml. + PYTHON_VERSION: "3.12" permissions: contents: write