Merge pull request #783 from EveryVoiceTTS/dev.ej/fork-warning-pytest #34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Matrix Tests | |
| on: | |
| workflow_call: | |
| workflow_dispatch: | |
| push: | |
| branches: main | |
| permissions: | |
| contents: read | |
| jobs: | |
| matrix-ubuntu: | |
| timeout-minutes: 30 | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "pip" | |
| - uses: awalsh128/cache-apt-pkgs-action@2c09a5e66da6c8016428a2172bd76e5e4f14bb17 # v1.5.3 | |
| with: | |
| packages: sox libsox-dev | |
| - uses: FedericoCarboni/setup-ffmpeg@583042d32dd1cabb8bd09df03bde06080da5c87c # v2 | |
| - name: Install dependencies and EveryVoice itself | |
| run: | | |
| CUDA_TAG=cpu pip install -r requirements.torch.txt --find-links https://download.pytorch.org/whl/torch_stable.html | |
| pip install -e .[dev] | |
| - run: pip freeze | |
| - run: pip list | |
| - run: cd everyvoice && python run_tests.py dev | |
| matrix-macos: | |
| timeout-minutes: 30 | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| runs-on: macos-latest | |
| defaults: | |
| run: | |
| # Required for conda | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Set up conda | |
| uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| miniforge-version: latest | |
| conda-remove-defaults: true | |
| - run: conda install -y -c conda-forge sox ffmpeg | |
| - uses: actions/cache@v5 | |
| with: | |
| path: ~/Library/Caches/pip | |
| key: pip-macos-${{ matrix.python-version }} | |
| - run: pip install -e .[dev] | |
| - run: python --version | |
| - run: pip freeze | |
| - run: pip list | |
| - run: cd everyvoice && python run_tests.py dev |