diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index db87b9f..c6a598d 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -28,7 +28,7 @@ jobs: steps: - name: Determine matrix id: generate_matrix - uses: coactions/matrix@main + uses: ./ with: min_python: "3.10" max_python: "3.13" diff --git a/README.md b/README.md index 240ba51..b979f7f 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ projects using: ## Supported optional arguments: -- `min_python` - Minimal version of python to be tested against, default is `"3.8"`. The maximum value is currently `"3.13"` +- `min_python` - Minimal version of python to be tested against, default is `"3.8"`. The maximum value is currently `"3.14"` - `other_names`- A list of other tox environments to include in the matrix. We plan to read them from [envlist](https://tox.wiki/en/latest/config.html#envlist) field in `tox.ini`. - `platforms` - Default to `linux` only but can be `linux`, `windows`, `macos` diff --git a/action.yml b/action.yml index f941be3..09878b6 100644 --- a/action.yml +++ b/action.yml @@ -12,7 +12,7 @@ inputs: max_python: description: Maximal version of python to be tested against. required: false - default: "3.12" + default: "3.13" default_python: description: Default version of python used by env. required: false diff --git a/entrypoint.py b/entrypoint.py index 82aeebc..ea756ed 100755 --- a/entrypoint.py +++ b/entrypoint.py @@ -9,9 +9,9 @@ from actions_toolkit import core -KNOWN_PYTHONS = ("3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13-dev") +KNOWN_PYTHONS = ("3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14-dev") PYTHON_REDIRECTS = { - "3.13": "3.13-dev", # Remove once GHA allows 3.13 as a valid version + "3.14": "3.14-dev", # Remove once GHA allows 3.14 as a valid version } PLATFORM_MAP = { "linux": "ubuntu-24.04", @@ -104,7 +104,7 @@ def main() -> None: # noqa: C901,PLR0912,PLR0915 core.debug(f"Testing strategy: {strategies}") result: dict[str, dict[str, str]] = {} - if max_python == "3.13": + if max_python == "3.14": python_names = KNOWN_PYTHONS[KNOWN_PYTHONS.index(min_python) :] else: python_names = KNOWN_PYTHONS[ @@ -144,7 +144,7 @@ def sort_key(s: str) -> tuple[int, str]: "os": PLATFORM_MAP[platform_name], } for index, command in enumerate(commands[1:]): - data[f"command{index+2}"] = command + data[f"command{index + 2}"] = command add_job( result, name,