build(levelization): add fast python generator with CI parity check

Add Builds/levelization/levelization.py for fast local iteration and semantic comparison against canonical shell output via --compare-to.

Keep Builds/levelization/levelization.sh as canonical path, and update levelization workflow to fail if python output diverges from shell-generated results.

Also harden interactive-shell detection in levelization.sh for portability and document local usage in README.
This commit is contained in:
Nicholas Dudfield
2026-03-03 10:17:46 +07:00
parent c491c5c82f
commit d32f34d3bf
4 changed files with 365 additions and 1 deletions

View File

@@ -11,6 +11,11 @@ jobs:
- uses: actions/checkout@v3
- name: Check levelization
run: Builds/levelization/levelization.sh
- name: Verify Python Generator Matches Canonical Script
run: |
python3 Builds/levelization/levelization.py \
--results-dir /tmp/levelization-py-results \
--compare-to Builds/levelization/results
- name: Check for differences
id: assert
run: |