Support python-version input (#754)

This commit is contained in:
Glenn Jocher
2026-06-05 19:36:27 +02:00
committed by GitHub
parent 4b4fff17da
commit f118d0a3c6
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -95,6 +95,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }} # Auto-generated token
labels: true # Auto-label issues/PRs using AI
python-version: "3.13" # Optional: set up a specific Python version
python: true # Format Python with Ruff
python_docstrings: true # Format Python docstrings (default: true)
biome: true # Format JS/TS with Biome (auto-detected via biome.json)
+10
View File
@@ -18,6 +18,10 @@ inputs:
description: "Run Python formatting"
required: false
default: "false"
python-version:
description: "Python version to set up before running Python tooling"
required: false
default: ""
python_docstrings:
description: "Run Python docstring formatting"
required: false
@@ -100,6 +104,12 @@ inputs:
runs:
using: "composite"
steps:
- name: Setup Python
if: inputs.python-version != ''
uses: actions/setup-python@v6
with:
python-version: ${{ inputs.python-version }}
- uses: astral-sh/setup-uv@v7
with:
ignore-empty-workdir: true