mirror of
https://github.com/kennethreitz/rhymepad.org.git
synced 2026-07-21 22:09:30 +00:00
ee7879b16a
The same build pass now harvests Wiktionary's curated links (synonyms, antonyms, hypernyms, hyponym/coordinate/derived/related) into data/thesaurus.json.gz (2.9MB). synonyms_for reads that, the sense count comes from the definitions table, and inflections fold in their base word's links via the same pointers the glosses use. NLTK stays only for g2p-en's tagger; the wordnet/omw downloads are gone from the Dockerfile and CI. Co-Authored-By: Claude Fable 5 <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
|