Files
discord-emojis/.github/workflows/quality.yaml

56 lines
1.3 KiB
YAML

name: Quality Checks
on:
workflow_call:
jobs:
check-license-header:
name: License Header Check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Licensor
uses: nicebots-xyz/licensor/.github/actions/setup-licensor@v0.0.5
with:
version: v0.0.5
- name: Check Header Compliance
run: licensor check * --ignore ".*" --ignore build
quality:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
check: [format, lint, basedpyright]
include:
- check: format
name: "Format Check"
command: "uv run ruff format --check ."
- check: lint
name: "Lint Check"
command: "uv run ruff check ."
- check: basedpyright
name: "Type Check"
command: "uv run basedpyright ."
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v6
- name: "Install uv"
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: "Set up Python"
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"
- name: Install dependencies
run: uv sync
- name: ${{ matrix.name }}
run: ${{ matrix.command }}