fix: test iterations

This commit is contained in:
Félix Voituret
2019-11-08 19:40:45 -05:00
parent ebd03c8565
commit 7322b3bdea
2 changed files with 3 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ jobs:
command: pip install twine && twine upload dist/* command: pip install twine && twine upload dist/*
workflows: workflows:
version: 2 version: 2
test-and-deploy: spleeter-workflow:
jobs: jobs:
- test-3.6 - test-3.6
- test-3.7 - test-3.7

View File

@@ -25,7 +25,7 @@ def test_separate():
""" Test separation from raw data. """ """ Test separation from raw data. """
adapter = get_default_audio_adapter() adapter = get_default_audio_adapter()
waveform, _ = adapter.load(TEST_AUDIO_DESCRIPTOR) waveform, _ = adapter.load(TEST_AUDIO_DESCRIPTOR)
for configuration, instruments in TEST_CONFIGURATIONS: for configuration, instruments in TEST_CONFIGURATIONS.items():
separator = Separator(configuration) separator = Separator(configuration)
prediction = separator.separate(waveform) prediction = separator.separate(waveform)
assert len(prediction) == 2 assert len(prediction) == 2
@@ -35,7 +35,7 @@ def test_separate():
def test_separate_to_file(): def test_separate_to_file():
""" Test file based separation. """ """ Test file based separation. """
for configuration, instruments in TEST_CONFIGURATIONS: for configuration, instruments in TEST_CONFIGURATIONS.items():
separator = Separator(configuration) separator = Separator(configuration)
with TemporaryDirectory() as directory: with TemporaryDirectory() as directory:
separator.separate_to_file( separator.separate_to_file(