-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 1.04 KB
/
Copy pathpython-versions.yml
File metadata and controls
31 lines (27 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Python versions
# pyproject.toml's requires-python is the only place that names a Python
# version. Every workflow that needs one calls this and reads it back, so
# bumping requires-python moves the lint, test and report jobs together.
on:
workflow_call:
outputs:
all:
description: JSON array of every supported Python version, oldest first.
value: ${{ jobs.resolve.outputs.all }}
latest:
description: The newest supported Python version.
value: ${{ jobs.resolve.outputs.latest }}
jobs:
resolve:
runs-on: ubuntu-latest
timeout-minutes: 30
outputs:
all: ${{ steps.resolve.outputs.all }}
latest: ${{ steps.resolve.outputs.latest }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
- name: Resolve supported Python versions
id: resolve
run: uv run --script .github/scripts/python_versions.py >> "$GITHUB_OUTPUT"