Releases and documentation synchronization
Package release path
Section titled “Package release path”In the documented release, v0.1.16, creating a GitHub Release triggers the publication workflow. It runs the reusable validation workflow (tests, lint, format checks, and a package build), then builds source and wheel distributions and publishes them to PyPI using OIDC trusted publishing.
The publication environment is named release. This release does not generate a
documentation asset bundle.
Pre-release verification
Section titled “Pre-release verification”Run these checks locally before creating the release; the publication workflow also validates the source:
python -m pytestpython -m buildThen inspect:
- generated source and wheel contents;
- dynamic version;
- importability from the wheel;
- public examples;
- optional plotting imports; and
- release notes.
Create a tag that setuptools-scm resolves to the intended package version.
Documentation release selection
Section titled “Documentation release selection”This site does not automatically follow the highest semantic version or default branch.
Select the qualifying release with the most recent GitHub created_at timestamp where:
draft = falseprerelease = falseResolve its exact tag target and commit.
Audit before synchronizing
Section titled “Audit before synchronizing”For a new stable release, inspect at least:
README.mdpyproject.tomlmodel_auditor/__init__.pymodel_auditor/core.pymodel_auditor/metrics.pymodel_auditor/metric_inputs.pymodel_auditor/error_metrics.pymodel_auditor/schemas.pymodel_auditor/plotting/tests/.github/workflows/Compare:
- public signatures and defaults;
- result fields and export columns;
- error types and messages;
- metric formulas;
- threshold precedence;
- bootstrap semantics;
- null/categorical behavior;
- optional dependency behavior;
- test coverage; and
- known limitations.
Update one source record
Section titled “Update one source record”Change every field in docs-source.json together:
{ "repository": "beatrice-b-m/model-auditor", "release": "vX.Y.Z", "commit": "<exact commit>", "synchronizedAt": "<UTC ISO 8601 timestamp>"}Update all affected pages in the same pull request. Do not change only the release label.
Documentation validation
Section titled “Documentation validation”npm run formatnpm run validateReview:
- formatting and code-fence checks;
- site config and provenance validation;
- Astro diagnostics;
- production build;
- generated internal links;
- Linux
npm ci; and - Cloudflare preview.
Handling a release with incomplete or conflicting behavior
Section titled “Handling a release with incomplete or conflicting behavior”Document observed stable behavior rather than silently repairing it in prose.
When source, tests, README, and docstrings disagree:
- prioritize executable stable source and deterministic tests;
- record the discrepancy for maintainers;
- disclose user-relevant limitations at the affected page;
- avoid promising intended but unimplemented behavior; and
- remove the caveat only after a later stable release verifies the change.
Merge and deployment
Section titled “Merge and deployment”Merge the synchronization pull request only when:
- provenance matches the selected tag;
- examples are verified;
- limitations are accurate;
- all repository checks pass; and
- the preview is complete.
Cloudflare deploys the static site from main according to the documentation repository’s build configuration.