mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-31 14:58:23 +00:00
40 lines
883 B
YAML
40 lines
883 B
YAML
version: 2
|
|
jobs:
|
|
test:
|
|
docker:
|
|
- image: python:3.7
|
|
working_directory: ~/spleeter
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: install ffmpeg
|
|
command: apt-get update && apt-get install -y ffmpeg
|
|
- run:
|
|
name: install spleeter
|
|
command: pip install .
|
|
- run:
|
|
name: test separation
|
|
command: spleeter separate -i audio_example.mp3 -o .
|
|
upload:
|
|
docker:
|
|
- image: python:3
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: package
|
|
command: python setup.py sdist
|
|
- run:
|
|
name: upload to PyPi
|
|
command: pip install twine && twine upload dist/*
|
|
workflows:
|
|
version: 2
|
|
test-and-deploy:
|
|
jobs:
|
|
- test
|
|
- upload:
|
|
filters:
|
|
branches:
|
|
only:
|
|
- master
|
|
requires:
|
|
- test |