mirror of https://github.com/coqui-ai/TTS.git
ci: update uv and move into composite action
This commit is contained in:
parent
2df9bfa78e
commit
21172ececb
|
@ -0,0 +1,11 @@
|
||||||
|
name: Setup uv
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: 'composite'
|
||||||
|
steps:
|
||||||
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@v3
|
||||||
|
with:
|
||||||
|
version: "0.5.1"
|
||||||
|
enable-cache: true
|
||||||
|
cache-dependency-glob: "**/pyproject.toml"
|
|
@ -11,6 +11,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Setup uv
|
||||||
|
uses: ./.github/actions/setup-uv
|
||||||
- name: Verify tag matches version
|
- name: Verify tag matches version
|
||||||
run: |
|
run: |
|
||||||
set -ex
|
set -ex
|
||||||
|
@ -19,12 +21,6 @@ jobs:
|
||||||
if [[ "v$version" != "$tag" ]]; then
|
if [[ "v$version" != "$tag" ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
- name: Install uv
|
|
||||||
uses: astral-sh/setup-uv@v3
|
|
||||||
with:
|
|
||||||
version: "0.4.27"
|
|
||||||
enable-cache: true
|
|
||||||
cache-dependency-glob: "**/pyproject.toml"
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
run: uv python install 3.12
|
run: uv python install 3.12
|
||||||
- name: Build sdist and wheel
|
- name: Build sdist and wheel
|
||||||
|
|
|
@ -15,12 +15,8 @@ jobs:
|
||||||
python-version: [3.9]
|
python-version: [3.9]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install uv
|
- name: Setup uv
|
||||||
uses: astral-sh/setup-uv@v3
|
uses: ./.github/actions/setup-uv
|
||||||
with:
|
|
||||||
version: "0.4.27"
|
|
||||||
enable-cache: true
|
|
||||||
cache-dependency-glob: "**/pyproject.toml"
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
run: uv python install ${{ matrix.python-version }}
|
run: uv python install ${{ matrix.python-version }}
|
||||||
- name: Lint check
|
- name: Lint check
|
||||||
|
|
|
@ -16,12 +16,8 @@ jobs:
|
||||||
subset: ["data_tests", "inference_tests", "test_aux", "test_text", "test_tts", "test_tts2", "test_vocoder", "test_xtts", "test_zoo0", "test_zoo1", "test_zoo2"]
|
subset: ["data_tests", "inference_tests", "test_aux", "test_text", "test_tts", "test_tts2", "test_vocoder", "test_xtts", "test_zoo0", "test_zoo1", "test_zoo2"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install uv
|
- name: Setup uv
|
||||||
uses: astral-sh/setup-uv@v3
|
uses: ./.github/actions/setup-uv
|
||||||
with:
|
|
||||||
version: "0.4.27"
|
|
||||||
enable-cache: true
|
|
||||||
cache-dependency-glob: "**/pyproject.toml"
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
run: uv python install ${{ matrix.python-version }}
|
run: uv python install ${{ matrix.python-version }}
|
||||||
- name: Install Espeak
|
- name: Install Espeak
|
||||||
|
@ -58,10 +54,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install uv
|
- name: Setup uv
|
||||||
uses: astral-sh/setup-uv@v3
|
uses: ./.github/actions/setup-uv
|
||||||
with:
|
|
||||||
version: "0.4.27"
|
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
pattern: coverage-data-*
|
pattern: coverage-data-*
|
||||||
|
|
Loading…
Reference in New Issue