Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:
- 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 dependency
run: python .github/scripts/check_policyengine_us_dependency.py --mode fail

lint:
runs-on: ubuntu-latest
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ jobs:
id: run-context
run: python .github/scripts/resolve_run_context.py

policyengine-us-freshness:
name: PolicyEngine US freshness
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Require current PolicyEngine US dependency
run: python .github/scripts/check_policyengine_us_dependency.py --mode fail

# ── Documentation ──────────────────────────────────────────
docs:
name: Documentation
Expand Down Expand Up @@ -66,7 +77,9 @@ jobs:
versioning:
name: Versioning
runs-on: ubuntu-latest
needs: run-context
needs:
- run-context
- policyengine-us-freshness
if: |
github.event.head_commit.message != 'Update publication candidate' &&
github.event.head_commit.message != 'Finalize package version'
Expand Down Expand Up @@ -112,6 +125,7 @@ jobs:
needs:
- lint
- run-context
- policyengine-us-freshness
if: github.event.head_commit.message == 'Update publication candidate'
permissions:
actions: write
Expand Down
1 change: 1 addition & 0 deletions changelog.d/1009.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fail CI when policyengine-us is stale before publication.
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
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