Skip to content

Commit a547d53

Browse files
Reinstate larger runner for data deployment (#151)
1 parent 84f4bab commit a547d53

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

.github/workflows/code_changes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
args: ". -l 79 --check"
2222
Test:
23-
runs-on: ubuntu-latest
23+
runs-on: larger-runner
2424
steps:
2525
- name: Checkout repo
2626
uses: actions/checkout@v2

changelog_entry.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- bump: minor
2+
changes:
3+
fixed:
4+
- Larger GH runner for data generation.

policyengine_us_data/datasets/cps/extended_cps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"casualty_loss",
6969
"unreported_payroll_tax",
7070
"recapture_of_investment_credit",
71+
"deductible_mortgage_interest",
7172
]
7273

7374
if os.environ.get("TEST_LITE"):

policyengine_us_data/tests/test_datasets/test_enhanced_cps.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,13 @@ def test_policyengine_cps_loads(year: int):
2727
sim = Microsimulation(dataset=dataset)
2828

2929
assert not sim.calculate("household_net_income").isna().any()
30+
31+
32+
def test_ecps_has_mortgage_interest():
33+
from policyengine_us_data.datasets.cps import EnhancedCPS_2024
34+
from policyengine_us import Microsimulation
35+
36+
sim = Microsimulation(dataset=EnhancedCPS_2024)
37+
38+
assert sim.calculate("deductible_mortgage_interest").sum() > 1
39+
assert sim.calculate("interest_expense").sum() > 1

0 commit comments

Comments
 (0)