-
Notifications
You must be signed in to change notification settings - Fork 208
62 lines (55 loc) · 2.82 KB
/
test-pip-install.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Test pip install requirements
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
strategy:
max-parallel: 4
matrix:
platform: [ubuntu-latest, macos-14, windows-latest]
python-version: ["3.10"]
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
# if: matrix.platform == 'windows-latest'
# also test with uv
# MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python -m pip install xformers==0.0.27
# MACOSX_DEPLOYMENT_TARGET=10.9 CC=/usr/local/opt/llvm/bin/clang CXX=/usr/local/opt/llvm/bin/clang++ python -m pip install xformers==0.0.27
# python -m pip install wheel ninja
# brew install llvm libomp
# MACOSX_DEPLOYMENT_TARGET=10.9 CC=/opt/homebrew/opt/llvm/bin/clang CXX=/opt/homebrew/opt/llvm/bin/clang++ python -m pip install xformers==0.0.27
# xformers @ https://github.com/rsxdalv/xformers/releases/download/v0.0.27/xformers-0.0.27+184b280.d20241026-cp310-cp310-macosx_11_0_universal2.whl ; sys_platform == 'darwin'
run: python -m pip install torch==2.3.1 torchvision torchaudio
- name: Install xformers
if: matrix.platform == 'macos-14'
run: |
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
- name: Install xformers non-macos
if: matrix.platform != 'macos-14'
run: |
python -m pip install xformers==0.0.27+cu118 --index-url https://download.pytorch.org/whl/cu118
- name: Install dependencies
# python -m pip install --upgrade pip==23.3.2
# python -m pip install -r requirements.txt
# python -m pip install -r requirements_bark_hubert_quantizer.txt
# python -m pip install -r requirements_rvc.txt
# python -m pip install -r requirements_audiocraft.txt
# python -m pip install -r requirements_styletts2.txt
# python -m pip install -r requirements_vall_e.txt
# python -m pip install -r requirements_maha_tts.txt
# python -m pip install -r requirements_stable_audio.txt
# python -m pip install hydra-core==1.3.2
# python -m pip install nvidia-ml-py
run: |
python -m pip install
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
# - name: Lint with ruff
# run: ruff check .