Add tts (Kokoro) and stt (Vosk) services #35
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate all RO-Crates | |
| on: | |
| pull_request: | |
| paths: | |
| - 'crates/**/ro-crate-metadata.json' | |
| jobs: | |
| validate: | |
| name: Validate RO-Crate metadata | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install roc-validator | |
| run: pip install roc-validator | |
| - name: Validate RO-Crates under crates/ | |
| run: | | |
| set -euo pipefail | |
| shopt -s nullglob | |
| for dir in crates/*/ ; do | |
| crate="${dir%/}" | |
| metadata="$crate/ro-crate-metadata.json" | |
| if [ -f "$metadata" ]; then | |
| echo "Validating $crate" | |
| rocrate-validator validate -p ro-crate-1.1 --verbose --no-paging "$crate" | |
| else | |
| echo "Skipping $crate (no ro-crate-metadata.json found)" | |
| fi | |
| done |