[feat] Add performance and separation quality benchmarks #18
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: tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository == 'mixxxdj/demucs' || github.event_name == 'workflow_dispatch' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.13 | |
| - uses: actions/cache@v4 | |
| with: | |
| path: env | |
| key: tests-${{ hashFiles('**/requirements.txt') }} | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y ffmpeg | |
| python3 -m venv env | |
| . env/bin/activate | |
| python -m pip install --upgrade pip | |
| pip install '.[dev]' | |
| # FIXME: missing dependencies! | |
| # - name: Run separation test | |
| # run: | | |
| # . env/bin/activate | |
| # make test_eval | |
| - name: Run pytest | |
| run: | | |
| . env/bin/activate | |
| pytest ./tests/ |