Files
netbox-zabbix-sync/.github/workflows/quality.yml
2026-02-02 18:48:06 +01:00

30 lines
703 B
YAML

---
name: Code Quality
on:
pull_request:
workflow_call:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --dev
- name: Lint with ruff
run: uv run ruff check .
- name: Format check with ruff
run: uv run ruff format --check .
- name: Type check with ty
run: uv run ty check