Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
run: sudo apt-get install -y jq
- name: Set up uv for installed bundle validation
uses: astral-sh/setup-uv@v6
- name: Verify required package versions exist and the lockfile is current
run: uv lock --check
- name: Check simulation API supports updated PolicyEngine bundle
run: bash .github/check-policyengine-bundle-supported.sh --if-changed-from-base "${{ github.base_ref }}"

Expand Down
1 change: 1 addition & 0 deletions changelog.d/3876.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Restore Scotland population live coverage and require PolicyEngine 6.2.3 with UK country filtering through stored household regions; verify dependency availability and lock consistency before checking simulation-worker support.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12
# Match the API bundle in pyproject.toml; the bundle updater changes both pins.
# The models extra pins the complete certified runtime package set.
RUN pip install "policyengine[models]==6.2.1" ipython
RUN pip install "policyengine[models]==6.2.3" ipython
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dependencies = [
# versions certified by this PolicyEngine bundle. Cloud Run installs the
# complete frozen environment from uv.lock; the generic image installs
# this requirement directly.
"policyengine[models]==6.2.1",
"policyengine[models]==6.2.3",
"pydantic",
"pymysql",
"python-dotenv",
Expand Down
16 changes: 16 additions & 0 deletions tests/integration/test_live_economy.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,19 @@ def test_live_california_eitc_macro_reform(
region="state/ca",
probe_suffix="california-eitc",
)


def test_live_uk_universal_credit_macro_reform_in_scotland(
api_client,
integration_probe_id,
poll_live_endpoint,
):
_assert_live_macro_reform(
api_client,
integration_probe_id,
poll_live_endpoint,
country_id="uk",
reform_filename="uk_universal_credit_reform.json",
region="country/scotland",
probe_suffix="uk-scotland-uc",
)
5 changes: 5 additions & 0 deletions tests/unit/test_live_simulation_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
[
(live_economy.test_live_utah_macro_reform, "us", "ut"),
(live_economy.test_live_california_eitc_macro_reform, "us", "state/ca"),
(
live_economy.test_live_uk_universal_credit_macro_reform_in_scotland,
"uk",
"country/scotland",
),
],
)
def test_live_macro_requests_follow_the_query_contract(live_test, country_id, region):
Expand Down
10 changes: 5 additions & 5 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading