Skip to content

Commit

Permalink
ci: merge separate test workflows into one matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
eginhard committed Mar 11, 2024
1 parent 2c0a822 commit d07d47a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 97 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/data_tests.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/text_tests.yml

This file was deleted.

16 changes: 8 additions & 8 deletions .github/workflows/vocoder_tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: vocoder-tests
name: tests

on:
push:
Expand All @@ -7,17 +7,17 @@ on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
vocoder-tests:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.9, "3.10", "3.11"]
experimental: [false]
subset: ["data_tests", "test_text", "test_vocoder"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
Expand All @@ -39,16 +39,16 @@ jobs:
python3 -m uv pip install --system "TTS[all] @ ."
python3 setup.py egg_info
- name: Unit tests
run: make test_vocoder
run: make ${{ matrix.subset }}
- name: Upload coverage data
uses: actions/upload-artifact@v4
with:
name: coverage-data-${{ github.job }}-${{ matrix.python-version }}
name: coverage-data-${{ matrix.subset }}-${{ matrix.python-version }}
path: .coverage.*
if-no-files-found: ignore
coverage:
if: always()
needs: vocoder-tests
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit d07d47a

Please sign in to comment.