Skip to content

Crash-recovery loop at the composition root: offer restart instead of dying (#166) #644

Crash-recovery loop at the composition root: offer restart instead of dying (#166)

Crash-recovery loop at the composition root: offer restart instead of dying (#166) #644

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: korvid-runners
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
- run: uv sync --locked --dev --all-extras
- run: uv run ruff check src/ tests/
- run: uv run ruff format --check src/ tests/
- run: uv run mypy
- run: uv run tach check
- run: uvx deptry src/
- run: uv run pytest --cov --cov-fail-under=80
pre-commit:
runs-on: korvid-runners
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
enable-cache: true
- run: uv sync --locked --dev --all-extras
- run: uv run pre-commit run --all-files --show-diff-on-failure
security:
runs-on: korvid-runners
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
enable-cache: true
# Dependency vulnerability audit against the locked resolution
- run: uv export --frozen --no-emit-project --no-dev -o requirements.txt
- run: uvx pip-audit -r requirements.txt --disable-pip
# Static analysis of GitHub Actions workflows themselves
- run: uvx zizmor --min-severity medium .github/workflows/
dependency-review:
if: github.event_name == 'pull_request'
runs-on: korvid-runners
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
with:
fail-on-severity: high
ty-experimental:
runs-on: korvid-runners
continue-on-error: true
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- run: uvx ty check src/ || true