Support python-version input (#754)
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user