CI/CD Pipelines¶
The deployments repository uses GitHub Actions to automate documentation and code quality tasks.
Documentation Deployment (docs.yml)¶
Automatically builds and deploys the MkDocs documentation site to GitHub Pages.
Triggers¶
- Pushes to
mainthat modifydocs/**,mkdocs.yml, orpyproject.toml - Manual dispatch with required reason field
Workflow Steps¶
- Checkout: Fetches full git history (required for git-revision-date plugin)
- Install uv: Sets up the uv package manager
- Setup Python: Installs Python using uv
- Install dependencies: Runs
uv syncto install all dependencies frompyproject.toml - Deploy: Runs
uv run mkdocs gh-deploy --forceto build and publish togh-pagesbranch
Requirements¶
contents: writepermission for pushing togh-pagesbranch- Dependencies managed in
pyproject.toml: mkdocs-material- Material theme for MkDocsmkdocs-git-revision-date-localized-plugin- Git revision dates in docs
Pre-commit Checks (pre-commit.yml)¶
Runs pre-commit hooks on all files to ensure code quality and consistency.
Triggers¶
- Pull requests to
main - Manual dispatch
What it checks¶
- YAML syntax and formatting
- JSON formatting
- File permissions and naming
- Security scanning for hardcoded secrets
- Python code quality (if applicable)