43 lines
820 B
YAML
43 lines
820 B
YAML
name: Linting
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- release
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- release
|
|
|
|
jobs:
|
|
checkSyntax:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Source
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Install UV and Python
|
|
uses: astral-sh/setup-uv@v6
|
|
with:
|
|
enable-cache: true
|
|
|
|
- name: Sync UV
|
|
run: |
|
|
uv sync --no-dev --group lint
|
|
|
|
- name: Ruff Check
|
|
run: |
|
|
uv run --no-sync ruff --version
|
|
uv run --no-sync ruff check
|
|
|
|
- name: Pyright Check
|
|
run: |
|
|
uv run --no-sync pyright --version
|
|
uv run --no-sync pyright
|
|
|
|
- name: Isort Check
|
|
run: |
|
|
uv run --no-sync isort --version
|
|
uv run --no-sync isort --check .
|