test-pip-install.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: Test pip install requirements
  2. on:
  3. workflow_dispatch:
  4. push:
  5. branches:
  6. - main
  7. jobs:
  8. build:
  9. strategy:
  10. max-parallel: 4
  11. matrix:
  12. platform: [ubuntu-latest, macos-14, windows-latest]
  13. python-version: ["3.10"]
  14. runs-on: ${{ matrix.platform }}
  15. steps:
  16. - uses: actions/checkout@v4
  17. - name: Set up Python ${{ matrix.python-version }}
  18. uses: actions/setup-python@v5
  19. with:
  20. python-version: ${{ matrix.python-version }}
  21. - name: Install torch
  22. run: python -m pip install torch==2.3.1 torchvision torchaudio
  23. - name: Install xformers
  24. if: matrix.platform == 'macos-14'
  25. run: |
  26. python -m pip install https://github.com/rsxdalv/xformers/releases/download/v0.0.27/xformers-0.0.27+184b280.d20241026-cp310-cp310-macosx_11_0_universal2.whl
  27. - name: Install xformers non-macos
  28. if: matrix.platform != 'macos-14'
  29. run: |
  30. python -m pip install xformers==0.0.27+cu118 --index-url https://download.pytorch.org/whl/cu118
  31. - name: Install dependencies
  32. # python -m pip install --upgrade pip==23.3.2
  33. # python -m pip install -r requirements.txt
  34. # python -m pip install -r requirements_bark_hubert_quantizer.txt
  35. # python -m pip install -r requirements_rvc.txt
  36. # python -m pip install -r requirements_audiocraft.txt
  37. # python -m pip install -r requirements_styletts2.txt
  38. # python -m pip install -r requirements_vall_e.txt
  39. # python -m pip install -r requirements_maha_tts.txt
  40. # python -m pip install -r requirements_stable_audio.txt
  41. # python -m pip install hydra-core==1.3.2
  42. # python -m pip install nvidia-ml-py
  43. run: |
  44. python -m pip install -r requirements.txt -r requirements_bark_hubert_quantizer.txt -r requirements_rvc.txt -r requirements_audiocraft.txt -r requirements_styletts2.txt -r requirements_vall_e.txt -r requirements_maha_tts.txt -r requirements_stable_audio.txt hydra-core==1.3.2 nvidia-ml-py
  45. # - name: Lint with ruff
  46. # run: ruff check .