Census ACS 5-year SLD source packages: Utah pilot at summary levels 610/620 (microcosm#625) #620
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| jobs: | |
| chronicle: | |
| name: Chronicle checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.14" | |
| - name: Install dependencies | |
| run: uv sync --locked --all-extras | |
| - name: Lint Chronicle surface | |
| run: > | |
| uv run ruff check | |
| chronicle | |
| policyengine_chronicle | |
| db | |
| scripts | |
| tests | |
| - name: Test Chronicle surface | |
| run: > | |
| uv run pytest -q | |
| - name: Build source input database | |
| run: | | |
| uv run chronicle --db /tmp/chronicle-targets-ci.db init | |
| uv run chronicle --db /tmp/chronicle-targets-ci.db load all | |
| uv run chronicle --db /tmp/chronicle-targets-ci.db stats | |
| - name: Build wheel | |
| run: | | |
| rm -rf dist | |
| uv build | |
| - name: Test wheel install | |
| run: | | |
| wheel_path="$(find dist -name '*.whl' -print -quit)" | |
| uv venv /tmp/chronicle-wheel-smoke --python 3.14 | |
| uv pip install --python /tmp/chronicle-wheel-smoke/bin/python "$wheel_path" | |
| cd /tmp | |
| /tmp/chronicle-wheel-smoke/bin/python - <<'PY' | |
| import policyengine_chronicle | |
| import policyengine_chronicle.normalization | |
| import policyengine_chronicle.sources | |
| import policyengine_chronicle.target_profiles | |
| import policyengine_chronicle.targets | |
| from policyengine_chronicle.schema import ( | |
| CONSUMER_FACT_SCHEMA_SHA256, | |
| consumer_fact_schema, | |
| ) | |
| assert policyengine_chronicle.__name__ == "policyengine_chronicle" | |
| # The pinned consumer-fact schema must ship inside the wheel. | |
| assert consumer_fact_schema()["title"] == "Ledger consumer fact contract row" | |
| assert len(CONSUMER_FACT_SCHEMA_SHA256) == 64 | |
| PY | |
| /tmp/chronicle-wheel-smoke/bin/chronicle --help >/dev/null |