diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f643837 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: ci +on: + push: + pull_request: + workflow_dispatch: +jobs: + pytest: + strategy: + fail-fast: false + matrix: # https://github.com/actions/python-versions/releases + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] # , "3.14", "pypy-3.11"] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 + with: + python-version: ${{ matrix.python-version }} + allow-prereleases: true + - run: pip install pytest + - run: pip install --editable ".[en]" + - run: pytest || true # There are no tests. + - run: python examples/usage.py diff --git a/pyproject.toml b/pyproject.toml index e0ee5aa..6880280 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ classifiers = [ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", ] -requires-python = ">=3.8, <3.14" +requires-python = ">=3.8, <3.15" dependencies = [ "addict", "pip>=25.0.1", @@ -24,7 +24,7 @@ dependencies = [ ] [project.optional-dependencies] -en = ["num2words", "spacy", "spacy-curated-transformers", "phonemizer-fork", "espeakng-loader", "torch", "transformers"] +en = ["num2words", "spacy<4", "spacy-curated-transformers", "phonemizer-fork", "espeakng-loader", "torch", "transformers"] ja = ["fugashi", "jaconv", "mojimoji", "unidic", "pyopenjtalk"] ko = ["jamo", "nltk"] zh = ["jieba", "ordered-set", "pypinyin", "cn2an", "pypinyin-dict"]