Skip to content

Commit b32ab92

Browse files
authored
Fail CI on stale PolicyEngine US dependency (#1011)
1 parent 71d8bc4 commit b32ab92

5 files changed

Lines changed: 23 additions & 8 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
- uses: actions/setup-python@v6
4545
with:
4646
python-version: "3.14"
47-
- name: Warn if policyengine-us is stale
48-
run: python .github/scripts/check_policyengine_us_dependency.py --mode warn
47+
- name: Require current PolicyEngine US dependency
48+
run: python .github/scripts/check_policyengine_us_dependency.py --mode fail
4949

5050
lint:
5151
runs-on: ubuntu-latest

.github/workflows/push.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ jobs:
3030
id: run-context
3131
run: python .github/scripts/resolve_run_context.py
3232

33+
policyengine-us-freshness:
34+
name: PolicyEngine US freshness
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v6
38+
- uses: actions/setup-python@v6
39+
with:
40+
python-version: "3.14"
41+
- name: Require current PolicyEngine US dependency
42+
run: python .github/scripts/check_policyengine_us_dependency.py --mode fail
43+
3344
# ── Documentation ──────────────────────────────────────────
3445
docs:
3546
name: Documentation
@@ -66,7 +77,9 @@ jobs:
6677
versioning:
6778
name: Versioning
6879
runs-on: ubuntu-latest
69-
needs: run-context
80+
needs:
81+
- run-context
82+
- policyengine-us-freshness
7083
if: |
7184
github.event.head_commit.message != 'Update publication candidate' &&
7285
github.event.head_commit.message != 'Finalize package version'
@@ -112,6 +125,7 @@ jobs:
112125
needs:
113126
- lint
114127
- run-context
128+
- policyengine-us-freshness
115129
if: github.event.head_commit.message == 'Update publication candidate'
116130
permissions:
117131
actions: write

changelog.d/1009.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fail CI when policyengine-us is stale before publication.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ classifiers = [
2222
"Programming Language :: Python :: 3.14",
2323
]
2424
dependencies = [
25-
"policyengine-us==1.693.4",
25+
"policyengine-us==1.693.5",
2626
# policyengine-core 3.26.1 is the current 3.26.x runtime and includes the fix for
2727
# PolicyEngine/policyengine-core#482 (user-set ETERNITY inputs lost
2828
# after _invalidate_all_caches) and is required by policyengine-us 1.682.1+.

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)