Test pip install requirements #64
Workflow file for this run
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: Test pip install requirements | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
platform: [ubuntu-latest, macos-14, windows-latest] | |
python-version: ["3.10", "3.11", "3.12"] | |
include: | |
- python-version: "3.10" | |
cp_tag: "310" | |
- python-version: "3.11" | |
cp_tag: "311" | |
- python-version: "3.12" | |
cp_tag: "312" | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install torch | |
run: python -m pip install torch==2.6.0 torchvision torchaudio | |
# Mac-specific xformers installation | |
- name: Install xformers on macOS | |
if: matrix.platform == 'macos-14' | |
run: | | |
python -m pip install https://github.com/rsxdalv/xformers/releases/download/v0.0.30/xformers-0.0.30+cbc9beb.d20250514-cp${{ matrix.cp_tag }}-cp${{ matrix.cp_tag }}-macosx_11_0_universal2.whl | |
# xformers installation for non-macOS platforms | |
- name: Install xformers on non-macOS | |
if: matrix.platform != 'macos-14' | |
run: | | |
python -m pip install xformers==0.0.29.post3 --index-url https://download.pytorch.org/whl/cu124 | |
- name: Install dependencies | |
shell: bash | |
run: | | |
python -m pip install -r requirements.txt \ | |
git+https://github.com/rsxdalv/extension_bark_voice_clone@main \ | |
git+https://github.com/rsxdalv/extension_rvc@main \ | |
git+https://github.com/rsxdalv/extension_audiocraft@main \ | |
git+https://github.com/rsxdalv/extension_styletts2@main \ | |
git+https://github.com/rsxdalv/extension_vall_e_x@main \ | |
git+https://github.com/rsxdalv/extension_maha_tts@main \ | |
hydra-core==1.3.2 nvidia-ml-py | |
# git+https://github.com/rsxdalv/extension_stable_audio@main \ | |
# - name: Install dependencies | |
# if: runner.os == 'Windows' | |
# run: | | |
# python -m pip install -r requirements.txt ^ | |
# git+https://github.com/rsxdalv/extension_bark_voice_clone@main ^ | |
# git+https://github.com/rsxdalv/extension_rvc@main ^ | |
# git+https://github.com/rsxdalv/extension_audiocraft@main ^ | |
# git+https://github.com/rsxdalv/extension_styletts2@main ^ | |
# git+https://github.com/rsxdalv/extension_vall_e_x@main ^ | |
# git+https://github.com/rsxdalv/extension_maha_tts@main ^ | |
# git+https://github.com/rsxdalv/extension_stable_audio@main ^ | |
# hydra-core==1.3.2 nvidia-ml-py | |
# shell: cmd | |
# - name: Install dependencies | |
# # if: runner.os != 'Windows' | |
# shell: bash | |
# run: | | |
# python -m pip install -r requirements.txt \ | |
# git+https://github.com/rsxdalv/extension_bark_voice_clone@main \ | |
# git+https://github.com/rsxdalv/extension_rvc@main \ | |
# git+https://github.com/rsxdalv/extension_audiocraft@main \ | |
# git+https://github.com/rsxdalv/extension_styletts2@main \ | |
# git+https://github.com/rsxdalv/extension_vall_e_x@main \ | |
# git+https://github.com/rsxdalv/extension_maha_tts@main \ | |
# git+https://github.com/rsxdalv/extension_stable_audio@main \ | |
# hydra-core==1.3.2 nvidia-ml-py | |
- name: Test tts_webui | |
run: python -c "import tts_webui" | |
- name: Print installed packages | |
run: python -m pip list | |
# uv lock | |
- name: Lock with uv | |
run: uv lock | |
# upload uv lock artifact | |
- name: Upload uv lock artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: uv-lock-${{ matrix.platform }}-${{ matrix.python-version }} | |
path: .uv-lock |