Download .github/workflows/python-app.yml from varaslaw/deleteee2: direct link, hf CLI and curl.
- Browser
- Download file 1.67 kB
-
https://huggingface.co/datasets/varaslaw/deleteee2/resolve/main/.github/workflows/python-app.yml
- Command line
-
hf download hf://datasets/varaslaw/deleteee2/.github/workflows/python-app.yml
-
curl -L -o python-app.yml https://huggingface.co/datasets/varaslaw/deleteee2/resolve/main/.github/workflows/python-app.yml
1.67 kB
| # This workflow will install Python dependencies, run tests and lint with a single version of Python | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
| name: Python application | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| - name: Install torch, torchvision, torchaudio | |
| run: | | |
| pip install torch torchvision torchaudio | |
| - name: Install FFmpeg | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y ffmpeg | |
| - name: Install dependencies from requirements.txt | |
| run: | | |
| pip install -r requirements.txt | |
| - name: Download Hubert & RMVPE | |
| run: | | |
| sudo apt-get install -qq -y aria2 | |
| aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt -d /home/runner/work/Advanced-RVC-Inference/Advanced-RVC-Inference -o hubert_base.pt | |
| aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/rmvpe.pt -d /home/runner/work/Advanced-RVC-Inference/Advanced-RVC-Inference -o rmvpe.pt | |
| - name: Test application | |
| run: | | |
| python infer.py & | |
| sleep 180 | |
| - name: Exit application | |
| run: | | |
| pkill -f infer.py || true |