Files
rhymepad.org/.github/workflows/ci.yml
kennethreitz ee7879b16a Synonyms from Wiktionary too — WordNet fully removed
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>
2026-06-11 22:59:14 -04:00

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