Skip to content

Fix: Require Python 3.11 or newer #256

Closed

Description

Summary

Part of lfreleng-actions/.github#362. Python 3.10 reached end of life in October 2026, and the organisation minimum is now Python 3.11.

This action tests a project on the Python the caller requests through python_version, and still carries support for 3.8 to 3.10.

File Line Detail
action.yaml 861 to 877 Installs tox<4.0.0 when python_version is 3.8
action.yaml 1049 to 1060, 1076, 1114 Installs tomli into the test environment for Python below 3.11
scripts/coverage_config.py 10 to 41 tomli fallback
scripts/detect_coverage.py 26 to 42 tomli fallback, and its exit status 2
.github/workflows/testing.yaml 309, 526, 561 The python-nss-ng regression matrix includes "3.10"
pyproject.toml 12 to 15 pythonVersion = "3.10", to keep the tomli fallback type-checked
.pre-commit-config.yaml 128 tomli in the type checker's additional_dependencies
README.md 176, 185 Examples with python_version: "3.10"
.fixtures/*/pyproject.toml Five fixtures declare requires-python = ">=3.10"

Line numbers are from main at the time of writing; #257 has since changed .github/workflows/testing.yaml, so locate those by content.

Fix

  • Refuse a python_version below 3.11 early, with a clear error that names the input and the minimum, before anything is installed. tox-run-action refuses an old Python the same way: see its unsupported-python path. Add a negative test for the refusal.
  • Remove the tox<4.0.0 branch, and always install current tox with tox-uv.
  • Remove the tomli install and the tomli fallbacks, and import tomllib directly.
  • Drop "3.10" from the regression matrix.
  • Raise pythonVersion to "3.11", and drop tomli from the hook's additional_dependencies.
  • Update the README examples, and raise the fixtures to >=3.11.

Acceptance

  • Every test job passes; the new negative test proves that 3.10 is refused before anything is installed.
  • No reference to Python 3.8, 3.9 or 3.10 as supported, nor to tomli, remains.
  • Pin any new action by commit SHA with a # vX.Y.Z comment.
  • The repository's hooks pass.
  • The pull request description notes the behaviour change for callers that pass a python_version below 3.11.

Workflow edits are allowed for this issue.

Activity

  1. added
    breaking-change
    no-agent
    and removed
    no-agent
    on Nov 15, 2026
  2. lf-releng-code-monkey-bot commented on Nov 15, 2026

    @lf-releng-code-monkey-bot
    Contributor

    🐒 An AI agent has proposed a change for this issue: pull request #258 (head 1dac21b). The Copilot review of it is clean. An antagonistic review was requested from the review bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking-change

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions