Use DataSentry to stop a pull request or release when a dataset contains high-severity quality issues, while still uploading a human-readable report for review.
Copy datasentry-quality-gate.yml to .github/workflows/data-quality.yml and change the dataset path:
- name: Scan data and enforce quality gate
run: datasentry scan data/orders.csv --fail-on highThe example deliberately keeps repair out of CI. Automated pipelines should detect, explain, and gate; state-changing repairs should stay reviewable and reversible.
- installs Python and
datasentry-ai; - scans the selected dataset with deterministic detectors;
- exits non-zero if the configured severity gate fails;
- exports the latest scan as an HTML report even when the gate fails;
- uploads the report as a workflow artifact.
DataSentry can also export JSON, Markdown, JUnit, and SARIF:
datasentry report export latest --as junit --output datasentry-junit.xml
datasentry report export latest --as sarif --output datasentry.sarif.jsonUse JUnit when your CI surface understands test reports and SARIF when you want to feed findings into compatible code-scanning tooling.