Zum Inhalt

Statische Tests

Führt ein minimales Bündel statischer Analyse bei jedem Push aus und liefert schnelles Feedback ohne externe Dienste.


Verwendung

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

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

Erforderlicher Status-Check

Kombiniere den Workflow mit einer Branch-Protection-Regel, die den Check static / Static CI Tests verlangt — siehe Settings.


Zentrale Konfiguration

.github/workflows/reusable-pre-commit.yaml
name: Reusable — Pre-Commit

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