mirror of
https://github.com/kennethreitz/rhymepad.org.git
synced 2026-06-11 17:08:33 +00:00
a62dce399a
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>
23 lines
586 B
YAML
23 lines
586 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: astral-sh/setup-uv@v5
|
|
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
|