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 }}