From 8cab2e3b4e59d4668427b2262cc5cf8e54cddb2b Mon Sep 17 00:00:00 2001 From: Enno Hermann Date: Sat, 29 Jun 2024 15:45:34 +0200 Subject: [PATCH] ci: test lowest and highest compatible versions of dependencies --- .github/workflows/tests.yml | 7 +++++-- pyproject.toml | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 43815f2e..88cc8e79 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -45,8 +45,11 @@ jobs: sed -i 's/https:\/\/coqui.gateway.scarf.sh\//https:\/\/github.com\/coqui-ai\/TTS\/releases\/download\//g' TTS/.models.json - name: Install TTS run: | - python3 -m uv pip install --system "coqui-tts[dev,server,languages] @ ." - python3 setup.py egg_info + resolution=highest + if [ "${{ matrix.python-version }}" == "3.9" ]; then + resolution=lowest-direct + fi + python3 -m uv pip install --resolution=$resolution --system "coqui-tts[dev,server,languages] @ ." - name: Unit tests run: make ${{ matrix.subset }} - name: Upload coverage data diff --git a/pyproject.toml b/pyproject.toml index 07aaa42d..07f15d05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,7 @@ [build-system] requires = [ "setuptools", + "setuptools-scm", "cython~=0.29.30", "numpy>=2.0.0", ]