Skip to content

Commit 1a90ca1

Browse files
MaxGhenisclaude
andauthored
Run CI on dependency updates (#1478)
* Run CI on dependency updates Add pyproject.toml and uv.lock to the paths filter so CI runs when dependencies are updated (e.g., dependabot PRs). Previously these changes would skip CI entirely. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Fix SCP test format to use array notation The named person output format (parent: 0, child_1: 1388) is not supported by policyengine-core's test runner. Convert to array format which is the standard for person-level variable output. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 6b44af9 commit 1a90ca1

File tree

4 files changed

+44
-60
lines changed

4 files changed

+44
-60
lines changed
2.32 MB
Binary file not shown.

.github/workflows/pr_code_changes.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
- policyengine_uk/**
1111
- tests/**
1212
- .github/**
13+
- pyproject.toml
14+
- uv.lock
1315
workflow_dispatch:
1416

1517
jobs:

changelog_entry.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- bump: patch
2+
changes:
3+
fixed:
4+
- CI now runs on dependency updates (pyproject.toml, uv.lock changes)
5+
- Fixed Scottish Child Payment test format to use array notation for person-level output

policyengine_uk/tests/policy/baseline/gov/social_security_scotland/scottish_child_payment.yaml

Lines changed: 37 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Scottish Child Payment tests
22
# SCP available from Feb 2021, extended to under-16s from Nov 2022
33
# scottish_child_payment is a Person-level variable
4+
# Output uses array format: [person1, person2, ...] matching input order
45

56
- name: SCP for family receiving UC in Scotland (2024)
67
period: 2024
@@ -23,10 +24,8 @@
2324
region: SCOTLAND
2425
output:
2526
# £26.70/week * 52 weeks = £1,388.40 per child
26-
scottish_child_payment:
27-
parent: 0
28-
child_1: 1388
29-
child_2: 1388
27+
# [parent, child_1, child_2]
28+
scottish_child_payment: [0, 1388, 1388]
3029

3130
- name: SCP for family receiving UC in Scotland (2023)
3231
period: 2023
@@ -49,10 +48,8 @@
4948
region: SCOTLAND
5049
output:
5150
# £25/week * 52 weeks = £1,300 per child
52-
scottish_child_payment:
53-
parent: 0
54-
child_1: 1300
55-
child_2: 1300
51+
# [parent, child_1, child_2]
52+
scottish_child_payment: [0, 1300, 1300]
5653

5754
- name: No SCP for families not receiving qualifying benefit
5855
period: 2024
@@ -73,9 +70,8 @@
7370
members: [parent, child_1]
7471
region: SCOTLAND
7572
output:
76-
scottish_child_payment:
77-
parent: 0
78-
child_1: 0
73+
# [parent, child_1]
74+
scottish_child_payment: [0, 0]
7975

8076
- name: No SCP in England
8177
period: 2024
@@ -95,9 +91,8 @@
9591
members: [parent, child_1]
9692
region: NORTH_EAST
9793
output:
98-
scottish_child_payment:
99-
parent: 0
100-
child_1: 0
94+
# [parent, child_1]
95+
scottish_child_payment: [0, 0]
10196

10297
- name: No SCP in Wales
10398
period: 2024
@@ -117,9 +112,8 @@
117112
members: [parent, child_1]
118113
region: WALES
119114
output:
120-
scottish_child_payment:
121-
parent: 0
122-
child_1: 0
115+
# [parent, child_1]
116+
scottish_child_payment: [0, 0]
123117

124118
- name: SCP before Nov 2022 only for under-6s
125119
period: 2022
@@ -142,10 +136,8 @@
142136
region: SCOTLAND
143137
output:
144138
# Only child_young (age 4) eligible, £20/week * 52 = £1,040
145-
scottish_child_payment:
146-
parent: 0
147-
child_young: 1040
148-
child_older: 0
139+
# [parent, child_young, child_older]
140+
scottish_child_payment: [0, 1040, 0]
149141

150142
- name: SCP for family receiving Child Tax Credit (2023 - CTC still qualifies)
151143
period: 2023
@@ -166,9 +158,8 @@
166158
region: SCOTLAND
167159
output:
168160
# £25/week * 52 weeks = £1,300
169-
scottish_child_payment:
170-
parent: 0
171-
child_1: 1300
161+
# [parent, child_1]
162+
scottish_child_payment: [0, 1300]
172163

173164
- name: No SCP before Feb 2021
174165
period: 2020
@@ -188,9 +179,8 @@
188179
members: [parent, child_1]
189180
region: SCOTLAND
190181
output:
191-
scottish_child_payment:
192-
parent: 0
193-
child_1: 0
182+
# [parent, child_1]
183+
scottish_child_payment: [0, 0]
194184

195185
- name: No SCP for child over 16
196186
period: 2024
@@ -210,9 +200,8 @@
210200
members: [parent, child_1]
211201
region: SCOTLAND
212202
output:
213-
scottish_child_payment:
214-
parent: 0
215-
child_1: 0
203+
# [parent, child_1]
204+
scottish_child_payment: [0, 0]
216205

217206
- name: Large family with multiple eligible children
218207
period: 2024
@@ -239,12 +228,8 @@
239228
region: SCOTLAND
240229
output:
241230
# £26.70/week * 52 weeks = £1,388.40 per child
242-
scottish_child_payment:
243-
parent: 0
244-
child_1: 1388
245-
child_2: 1388
246-
child_3: 1388
247-
child_4: 1388
231+
# [parent, child_1, child_2, child_3, child_4]
232+
scottish_child_payment: [0, 1388, 1388, 1388, 1388]
248233

249234
# New tests for 2025 amount and qualifying benefit changes
250235

@@ -267,9 +252,8 @@
267252
region: SCOTLAND
268253
output:
269254
# £27.15/week * 52 weeks = £1,411.80
270-
scottish_child_payment:
271-
parent: 0
272-
child_1: 1412
255+
# [parent, child_1]
256+
scottish_child_payment: [0, 1412]
273257

274258
- name: CTC no longer qualifies from 2025 (after April 2024)
275259
period: 2025
@@ -291,9 +275,8 @@
291275
region: SCOTLAND
292276
output:
293277
# CTC removed as qualifying benefit from April 2024
294-
scottish_child_payment:
295-
parent: 0
296-
child_1: 0
278+
# [parent, child_1]
279+
scottish_child_payment: [0, 0]
297280

298281
- name: CTC still qualifies in 2023 (before April 2024)
299282
period: 2023
@@ -315,9 +298,8 @@
315298
region: SCOTLAND
316299
output:
317300
# £25/week * 52 weeks = £1,300
318-
scottish_child_payment:
319-
parent: 0
320-
child_1: 1300
301+
# [parent, child_1]
302+
scottish_child_payment: [0, 1300]
321303

322304
- name: WTC no longer qualifies from 2025
323305
period: 2025
@@ -339,9 +321,8 @@
339321
region: SCOTLAND
340322
output:
341323
# WTC removed as qualifying benefit from April 2024
342-
scottish_child_payment:
343-
parent: 0
344-
child_1: 0
324+
# [parent, child_1]
325+
scottish_child_payment: [0, 0]
345326

346327
- name: Income Support still qualifies in 2025
347328
period: 2025
@@ -363,9 +344,8 @@
363344
region: SCOTLAND
364345
output:
365346
# £27.15/week * 52 weeks = £1,411.80
366-
scottish_child_payment:
367-
parent: 0
368-
child_1: 1412
347+
# [parent, child_1]
348+
scottish_child_payment: [0, 1412]
369349

370350
- name: JSA income-based still qualifies in 2025
371351
period: 2025
@@ -387,9 +367,8 @@
387367
region: SCOTLAND
388368
output:
389369
# £27.15/week * 52 weeks = £1,411.80
390-
scottish_child_payment:
391-
parent: 0
392-
child_1: 1412
370+
# [parent, child_1]
371+
scottish_child_payment: [0, 1412]
393372

394373
- name: ESA income-related still qualifies in 2025
395374
period: 2025
@@ -411,9 +390,8 @@
411390
region: SCOTLAND
412391
output:
413392
# £27.15/week * 52 weeks = £1,411.80
414-
scottish_child_payment:
415-
parent: 0
416-
child_1: 1412
393+
# [parent, child_1]
394+
scottish_child_payment: [0, 1412]
417395

418396
- name: Pension Credit still qualifies in 2025
419397
period: 2025
@@ -435,6 +413,5 @@
435413
region: SCOTLAND
436414
output:
437415
# £27.15/week * 52 weeks = £1,411.80
438-
scottish_child_payment:
439-
grandparent: 0
440-
child_1: 1412
416+
# [grandparent, child_1]
417+
scottish_child_payment: [0, 1412]

0 commit comments

Comments
 (0)