Skip to content

Python

How json2vars-setter handles Python, and how the example workflow provisions it.

json2vars-setter integration

Item Value
Matrix JSON key versions.python
Action output versions_python
Dynamic-update strategy input python-strategy (stable / latest / both)
Version source see Version Sources

Supported runners

The example matrix runs on Ubuntu / Windows / macOS:

ubuntu-latest, windows-latest, macos-latest

Any GitHub-hosted runner the setup action supports also works - the OS list is just the os array in your matrix JSON.

Supported versions

Example matrix (what the example workflow runs):

{
  "versions": {
    "python": [
      "3.10",
      "3.11",
      "3.12",
      "3.13",
      "3.14"
    ]
  }
}

Latest values tracked by the dynamic-update tooling (auto-refreshed from the release APIs into the version cache):

Field Version
stable 3.13.14
latest 3.14.6

Cache last updated: 2026-06-24T12:28:39.323011.

Setup action (example workflow)

python_test.yml provisions Python with the matrix value json2vars-setter produced:

1
2
3
4
- name: Set up Python
  uses: actions/setup-python@v7.0.0
  with:
    python-version: ${{ matrix.python-version }}

Note: The project under test is json2vars-setter itself, so Python uses the repository's own tests/python_project_matrix.json rather than a dedicated examples/ project.

References