Skip to content

Add Census PEP national age source package (#11) #81

Add Census PEP national age source package (#11)

Add Census PEP national age source package (#11) #81

Workflow file for this run

name: CI
on:
pull_request:
push:
jobs:
arch:
name: Arch 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 Arch surface
run: >
uv run ruff check
arch
db/cli.py
db/etl_snap.py
db/etl_aca_enrollment.py
db/etl_medicaid.py
db/etl_ssi.py
db/pe_source_inventory.py
db/schema.py
db/supabase_client.py
db/source_files.py
micro/us/census/download_cps.py
micro/us/entities.py
micro/us/hierarchy_validation.py
micro/us/hierarchical_pipeline.py
micro/us/pipeline.py
micro/us/policyengine.py
micro/us/targets.py
micro/us/validation_dashboard.py
calibration/constraints.py
calibration/targets.py
tests/test_arch_facts.py
tests/test_arch_namespace.py
tests/test_arch_normalization.py
tests/test_etl_snap.py
tests/test_etl_soi.py
tests/test_etl_aca_enrollment.py
tests/test_etl_medicaid.py
tests/test_etl_ssi.py
tests/test_source_files.py
tests/test_microplex_entities.py
tests/test_microplex_hierarchy_validation.py
tests/test_microplex_target_adapter.py
tests/test_microplex_pipeline.py
tests/test_microplex_policyengine.py
tests/test_download_cps.py
tests/test_hierarchical_pipeline.py
tests/test_supabase_client.py
- name: Test Arch surface
run: >
uv run pytest
tests/test_arch_facts.py
tests/test_arch_namespace.py
tests/test_arch_normalization.py
tests/test_etl_snap.py
tests/test_etl_soi.py
tests/test_etl_aca_enrollment.py
tests/test_etl_medicaid.py
tests/test_etl_ssi.py
tests/test_source_files.py
tests/test_calibration.py
tests/test_microplex_entities.py
tests/test_microplex_hierarchy_validation.py
tests/test_microplex_target_adapter.py
tests/test_microplex_pipeline.py
tests/test_microplex_policyengine.py
tests/test_download_cps.py
tests/test_hierarchical_pipeline.py
tests/test_supabase_client.py
-q
- name: Build target input database
run: |
uv run arch --db /tmp/arch-targets-ci.db init
uv run arch --db /tmp/arch-targets-ci.db load all
uv run arch --db /tmp/arch-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/arch-wheel-smoke --python 3.14
uv pip install --python /tmp/arch-wheel-smoke/bin/python "$wheel_path"
cd /tmp
/tmp/arch-wheel-smoke/bin/python - <<'PY'
import arch
import arch.targets
from micro.us.district import DistrictMicroplex
from micro.us.pipeline import run_pipeline
from micro.us.targets import load_microplex_targets
from microplex import ConditionalMAF
assert arch.__name__ == "arch"
assert DistrictMicroplex is not None
assert run_pipeline is not None
assert load_microplex_targets is not None
assert ConditionalMAF is not None
PY
/tmp/arch-wheel-smoke/bin/arch --help >/dev/null