Skip to content
Edit this page

Continuous integration

GitHub Actions keeps code quality, tests, security scans, packaging, runtime, container, and documentation checks visible. A fail-closed ci-gate requires every mandatory job to finish successfully.

Local commands

uv sync --locked --all-groups
make check
make ci

make check covers Ruff linting and formatting, strict Pyright, Python standards, import boundaries, public API policy, repository configuration, unit and integration tests, and coverage. make ci adds dependency and license audits, secret scanning, package validation, the Zensical build and browser checks, Docker, and pre-commit.

The current workflow also verifies the package on supported Python versions, builds a wheel and source archive, installs the wheel outside the repository, and tests a real FastAPI request with container injection.

Thresholds

  • Statement coverage: 95% minimum.
  • Branch coverage: 90% minimum.
  • Changed-source coverage: 95% minimum.
  • Python source line length: 80 characters maximum.
  • Pyright: strict mode.

CI must fail when a required job is missing, skipped, cancelled, or fails. When the active code changes, update affected check scope while retaining the purpose and rigor of each applicable gate.