Prepare Milestone 4 release #63
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Data quality | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - "agent/**" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| data-quality: | |
| name: Data quality gate | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install pipeline dependency | |
| run: python -m pip install -r requirements.txt | |
| - name: Validate committed data and quality contracts | |
| run: python scripts/validate_dataset.py | |
| - name: Build twice and verify determinism | |
| run: python scripts/check_determinism.py | |
| - name: Validate rebuilt data and cross-format equivalence | |
| run: python scripts/validate_dataset.py | |
| - name: Run schema, integrity, coordinate and territorial tests | |
| run: python -m unittest discover -s tests -v | |
| - name: Build v1.0.0 release assets | |
| run: python scripts/build_release.py | |
| - name: Validate v1.0.0 release assets | |
| run: python scripts/validate_release.py | |
| - name: Reject stale, divergent or manually edited artifacts | |
| run: >- | |
| git diff --exit-code -- | |
| data | |
| ":(exclude)data/italian_locations.sqlite" | |
| reports/milestone2-diff.json | |
| reports/milestone2-exports.json | |
| reports/milestone3-determinism.json | |
| reports/milestone3-validation.json |