mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-31 14:58:23 +00:00
fix: use xdist testing
This commit is contained in:
@@ -16,10 +16,10 @@ jobs:
|
|||||||
command: apt-get update && apt-get install -y ffmpeg
|
command: apt-get update && apt-get install -y ffmpeg
|
||||||
- run:
|
- run:
|
||||||
name: install python dependencies
|
name: install python dependencies
|
||||||
command: pip install -r requirements.txt && pip install pytest
|
command: pip install -r requirements.txt && pip install pytest pytest-xdist
|
||||||
- run:
|
- run:
|
||||||
name: pytest
|
name: pytest
|
||||||
command: pytest -W ignore::FutureWarning -W ignore::DeprecationWarning -vv
|
command: pytest -W ignore::FutureWarning -W ignore::DeprecationWarning -vv --forked
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: models-{{ checksum "spleeter/model/__init__.py" }}
|
key: models-{{ checksum "spleeter/model/__init__.py" }}
|
||||||
paths:
|
paths:
|
||||||
@@ -40,10 +40,10 @@ jobs:
|
|||||||
command: apt-get update && apt-get install -y ffmpeg
|
command: apt-get update && apt-get install -y ffmpeg
|
||||||
- run:
|
- run:
|
||||||
name: install python dependencies
|
name: install python dependencies
|
||||||
command: pip install -r requirements.txt && pip install pytest
|
command: pip install -r requirements.txt && pip install pytest pytest-xdist
|
||||||
- run:
|
- run:
|
||||||
name: pytest
|
name: pytest
|
||||||
command: pytest -W ignore::FutureWarning -W ignore::DeprecationWarning -vv
|
command: pytest -W ignore::FutureWarning -W ignore::DeprecationWarning -vv --forked
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: models-{{ checksum "spleeter/model/__init__.py" }}
|
key: models-{{ checksum "spleeter/model/__init__.py" }}
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ def test_separate(configuration, instruments):
|
|||||||
waveform, _ = adapter.load(TEST_AUDIO_DESCRIPTOR)
|
waveform, _ = adapter.load(TEST_AUDIO_DESCRIPTOR)
|
||||||
separator = Separator(configuration)
|
separator = Separator(configuration)
|
||||||
prediction = separator.separate(waveform)
|
prediction = separator.separate(waveform)
|
||||||
assert len(prediction) == 2
|
assert len(prediction) == len(instruments)
|
||||||
for instrument in instruments:
|
for instrument in instruments:
|
||||||
assert instrument in prediction
|
assert instrument in prediction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user