* chore: remove setup-uv action configuration file as it is no longer needed * chore: update setup-uv action to use the official action across all workflows * chore: disable cache pruning in all workflows to improve build stability * chore: update Python version to 3.13 and add pre-release description in workflows
31 lines
820 B
YAML
31 lines
820 B
YAML
name: Ruff Style Check
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, auto_merge_enabled]
|
|
paths:
|
|
- "**/*.py"
|
|
|
|
jobs:
|
|
lint:
|
|
name: Ruff Style Check
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version:
|
|
- "3.13"
|
|
steps:
|
|
- name: Check out the code at a specific ref
|
|
uses: actions/checkout@v4
|
|
- name: "Setup Environment"
|
|
uses: astral-sh/setup-uv@v6
|
|
with:
|
|
enable-cache: true
|
|
cache-dependency-glob: "uv.lock"
|
|
python-version: ${{ matrix.python-version }}
|
|
prune-cache: false
|
|
- name: Register problem matcher
|
|
run: echo "::add-matcher::.github/workflows/matchers/ruff.json"
|
|
- name: Run Ruff Check
|
|
run: uv run --only-dev ruff check --output-format=github .
|
|
|