Add Opgroeien Groeipakket 2025 caseload source package (11 facts) #296
Workflow file for this run
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: | |
| ledger: | |
| name: Ledger 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 Ledger surface | |
| run: > | |
| uv run ruff check | |
| ledger | |
| policyengine_ledger | |
| db | |
| scripts | |
| tests | |
| - name: Test Ledger surface | |
| run: > | |
| uv run pytest -q | |
| - name: Build source input database | |
| run: | | |
| uv run ledger --db /tmp/ledger-targets-ci.db init | |
| uv run ledger --db /tmp/ledger-targets-ci.db load all | |
| uv run ledger --db /tmp/ledger-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/ledger-wheel-smoke --python 3.14 | |
| uv pip install --python /tmp/ledger-wheel-smoke/bin/python "$wheel_path" | |
| cd /tmp | |
| /tmp/ledger-wheel-smoke/bin/python - <<'PY' | |
| import policyengine_ledger | |
| import policyengine_ledger.normalization | |
| import policyengine_ledger.sources | |
| import policyengine_ledger.target_profiles | |
| import policyengine_ledger.targets | |
| assert policyengine_ledger.__name__ == "policyengine_ledger" | |
| PY | |
| /tmp/ledger-wheel-smoke/bin/ledger --help >/dev/null |