From b3a5f288772c5e34e77ab1f26e646b25b170744a Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 14 Oct 2026 05:25:23 +0000 Subject: [PATCH] Test the next Python in CI only once it reaches beta Gate the 3.{python_max + 1} prerelease CI entry behind a new hidden python_next_in_beta copier variable (default false). Alphas are too unstable to be a useful signal; flip it on once the next Python reaches beta (feature freeze), and back off when python_max is bumped to it. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01P1UQo4jmZREtzrWn1xjcDN --- copier.yml | 7 +++++++ project_name/.github/workflows/ci.yml.jinja | 2 ++ 2 files changed, 9 insertions(+) diff --git a/copier.yml b/copier.yml index 9669ae9..9ff4034 100644 --- a/copier.yml +++ b/copier.yml @@ -96,6 +96,13 @@ python_max: default: 14 when: false +# Set to true once 3.{python_max + 1} reaches beta (feature freeze), +# to add it to the prerelease CI job. Alphas are too unstable to be useful. +python_next_in_beta: + type: bool + default: false + when: false + get_package_version_from_vcs: type: bool help: Use the version control system for versioning? diff --git a/project_name/.github/workflows/ci.yml.jinja b/project_name/.github/workflows/ci.yml.jinja index a2392c8..5527b85 100644 --- a/project_name/.github/workflows/ci.yml.jinja +++ b/project_name/.github/workflows/ci.yml.jinja @@ -191,9 +191,11 @@ jobs: - resolution: prerelease os: ubuntu-latest python-version: '3.{{ python_max }}' + {%- if python_next_in_beta %} - resolution: prerelease os: ubuntu-latest python-version: '3.{{ python_max + 1 }}' + {%- endif %} fail-fast: false {%- raw %} runs-on: ${{ matrix.os }}