Skip to content

Static tests

Runs a minimal static analysis bundle on every push to give fast feedback without external services.


Usage

.github/workflows/build-static-tests.yaml
on:
  push:

jobs:
  static:
    uses: nolte/gh-plumbing/.github/workflows/reusable-pre-commit.yaml@develop

Required status check

Combine the workflow with a branch-protection rule that requires the static / Static CI Tests check—see Settings.


Central configuration

.github/workflows/reusable-pre-commit.yaml
name: CI Static Tests

on:
  workflow_call:

jobs:
  static:
    name: "Static CI Tests"
    runs-on: ubuntu-latest
    steps:
      - name: Checkout sources
        uses: actions/checkout@v6.0.0

      - uses: actions/setup-python@v6
        with:
          python-version: '3.x'

      - uses: pre-commit/action@v3.0.1