Skip to content

Commit b13d41a

Browse files
author
KoyoAli
committed
Fix CI: correct script paths, publish-schema validation, real sample fixture
- checks.yml called scripts/ but scripts live in validation/ (file-not-found failures) - schema job validated an array against an object schema; now uses check_schema.py - fixture replaced with 30 real records (10/language) in the published schema - scripts aligned to published fields (english_translation, verified bool) - scorecard runs on schedule only (no per-push noise)
1 parent ec07e27 commit b13d41a

7 files changed

Lines changed: 360 additions & 36 deletions

File tree

.github/workflows/checks.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,55 +12,42 @@ jobs:
1212
for f in LICENSE README.md CONTRIBUTING.md CODE_OF_CONDUCT.md GOVERNANCE.md SECURITY.md; do
1313
[ -f "$f" ] || { echo "::error::missing $f"; exit 1; }
1414
done
15-
- name: Markdown links resolve
16-
uses: lycheeverse/lychee-action@v2
17-
with: { args: "--no-progress ." }
1815
1916
schema:
2017
name: records validate against schema
2118
runs-on: ubuntu-latest
2219
steps:
2320
- uses: actions/checkout@v4
2421
- run: pip install jsonschema
25-
- name: Validate fixtures
26-
run: |
27-
python -m jsonschema -i fixtures/sample.json schema/record.schema.json \
28-
|| { echo "::error::fixture does not match schema"; exit 1; }
22+
- run: python validation/check_schema.py
2923

3024
normalisation:
3125
name: unicode form is consistent
3226
runs-on: ubuntu-latest
3327
steps:
3428
- uses: actions/checkout@v4
35-
- name: Assert single normalisation form
36-
run: python scripts/check_normalisation.py
29+
- run: python validation/check_normalisation.py
3730

3831
duplicates:
3932
name: no duplicate pairs
4033
runs-on: ubuntu-latest
4134
steps:
4235
- uses: actions/checkout@v4
43-
- run: python scripts/check_duplicates.py
44-
45-
# ---- Not yet implemented. Visible on purpose: honest status, published roadmap. ----
36+
- run: python validation/check_duplicates.py
4637

38+
# ---- Planned checks, visible on purpose (honest roadmap). Disabled until built. ----
4739
language-identity:
4840
name: language identity (planned — year 1)
4941
if: false
5042
runs-on: ubuntu-latest
51-
steps:
52-
- run: echo "Off-the-shelf language ID is unreliable for yor/swa/pcm. Needs a team-defined approach."
53-
43+
steps: [{ run: "echo planned" }]
5444
benchmark-leakage:
5545
name: benchmark leakage (planned — needs holdout list)
5646
if: false
5747
runs-on: ubuntu-latest
58-
steps:
59-
- run: echo "Blocked on the benchmark holdout ID list."
60-
48+
steps: [{ run: "echo planned" }]
6149
provenance-gate:
62-
name: provenance and rights gate (planned — vocabulary not yet defined)
50+
name: provenance & rights gate (planned — vocabulary TBD)
6351
if: false
6452
runs-on: ubuntu-latest
65-
steps:
66-
- run: echo "Blocked on rights_status vocabulary."
53+
steps: [{ run: "echo planned" }]

.github/workflows/scorecard.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ on:
33
branch_protection_rule:
44
schedule:
55
- cron: '27 3 * * 1'
6-
push:
7-
branches: [ main ]
86
permissions: read-all
97
jobs:
108
analysis:

0 commit comments

Comments
 (0)