CI: pre-download NLTK data for g2p-en

Same pre-warm as the Dockerfile — without the tagger the g2p fallback
dies and the OOV-word tests fail.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-07 01:53:15 -04:00
parent 85cf9982a2
commit a62dce399a
+5
View File
@@ -14,4 +14,9 @@ jobs:
with:
enable-cache: true
- run: uv sync --frozen
# same NLTK pre-warm as the Dockerfile: g2p-en needs the tagger
# under both its old and new (nltk>=3.9) names
- run: |
uv run python -c "import nltk;
[nltk.download(p, quiet=True) for p in ('averaged_perceptron_tagger','averaged_perceptron_tagger_eng','cmudict')]"
- run: uv run pytest