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
8 changes: 4 additions & 4 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ jobs:
exit 1
}

policyengine-us-freshness:
name: PolicyEngine US freshness
require-current-policyengine-us:
name: Require current PolicyEngine US dependency
runs-on: ubuntu-latest
needs: check-fork
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Warn if policyengine-us is stale
run: python .github/scripts/check_policyengine_us_dependency.py --mode warn
- name: Require current policyengine-us pin
run: python .github/scripts/check_policyengine_us_dependency.py --mode fail

lint:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions changelog.d/1009.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fail PR checks when the pinned policyengine-us data-build dependency is stale.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.14",
]
dependencies = [
"policyengine-us==1.693.4",
"policyengine-us==1.693.5",
# policyengine-core 3.26.1 is the current 3.26.x runtime and includes the fix for
# PolicyEngine/policyengine-core#482 (user-set ETERNITY inputs lost
# after _invalidate_all_caches) and is required by policyengine-us 1.682.1+.
Expand Down
12 changes: 12 additions & 0 deletions tests/unit/test_publication_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,18 @@ def test_policyengine_us_dependency_check_allow_stale_keeps_local_errors_fatal(
assert module.main() == 1


def test_pr_workflow_fails_on_stale_policyengine_us_dependency():
workflow = (REPO_ROOT / ".github/workflows/pr.yaml").read_text()

assert "require-current-policyengine-us:" in workflow
assert "name: Require current PolicyEngine US dependency" in workflow
assert (
"python .github/scripts/check_policyengine_us_dependency.py --mode fail"
in workflow
)
assert "check_policyengine_us_dependency.py --mode warn" not in workflow


def test_restore_publication_changelog_restores_candidate_snapshot(
tmp_path,
monkeypatch,
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

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

Loading