feat: version song analysis contract and preserve lyric lines
This commit is contained in:
24
.gitea/workflows/song-analysis.yml
Normal file
24
.gitea/workflows/song-analysis.yml
Normal 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
|
||||
Reference in New Issue
Block a user