feat: version song analysis contract and preserve lyric lines
All checks were successful
song-analysis-contract / python-contract (push) Successful in 46s
CI / rust (pull_request) Successful in 2m41s
song-analysis-contract / python-contract (pull_request) Successful in 5s

This commit is contained in:
2026-11-01 11:24:21 +01:00
parent cd72278c88
commit 914f9ecfef
17 changed files with 401 additions and 74 deletions

View File

@ -0,0 +1,24 @@
name: song-analysis-contract
on:
push:
paths:
- 'tools/song_analysis/**'
- 'tools/test_song_analysis.py'
- 'schemas/song-analysis-v*/**'
- '.gitea/workflows/song-analysis.yml'
pull_request:
paths:
- 'tools/song_analysis/**'
- 'tools/test_song_analysis.py'
- 'schemas/song-analysis-v*/**'
- '.gitea/workflows/song-analysis.yml'
jobs:
python-contract:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: python -m pip install 'jsonschema>=4.20,<5'
- run: PYTHONPATH=tools python -m unittest tools.test_song_analysis