mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-06 04:32:43 +00:00
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
name: pytest
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
- '!master'
|
|
pull_request:
|
|
branches:
|
|
- 'master'
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.6, 3.7]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pip-
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: pretrained_models
|
|
key: models-${{ hashFiles('**/setup.py') }}
|
|
restore-keys: |
|
|
models-${{ hashFiles('**/setup.py') }}
|
|
models-
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update && sudo apt-get install -y ffmpeg
|
|
pip install --upgrade pip setuptools
|
|
pip install pytest==5.4.3 pytest-xdist==1.32.0 pytest-forked==1.1.3 musdb museval
|
|
python setup.py install
|
|
- name: Test with pytest
|
|
run: make test |