mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-31 14:58:23 +00:00
fix: add python version wf
This commit is contained in:
@@ -1,21 +1,54 @@
|
|||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test-3.6:
|
||||||
|
docker:
|
||||||
|
- image: python:3.6
|
||||||
|
working_directory: ~/spleeter
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- python-3.6-cache-{{ checksum requirements.txt }}
|
||||||
|
- python-3.6-cache-
|
||||||
|
- run:
|
||||||
|
name: install ffmpeg
|
||||||
|
command: apt-get update && apt-get install -y ffmpeg
|
||||||
|
- run:
|
||||||
|
name: install python dependencies
|
||||||
|
command: pip install -r requirements.txt && pip install pytest
|
||||||
|
- save_cache:
|
||||||
|
key: python-3.6-cache-{{ checksum requirements.txt }}
|
||||||
|
paths:
|
||||||
|
- "/usr/local/bin"
|
||||||
|
- "/usr/local/lib/python3.6/site-packages"
|
||||||
|
- run:
|
||||||
|
name: pytest
|
||||||
|
command: pytest -W ignore::FutureWarning -W ignore::DeprecationWarning
|
||||||
|
test-3.7:
|
||||||
docker:
|
docker:
|
||||||
- image: python:3.7
|
- image: python:3.7
|
||||||
working_directory: ~/spleeter
|
working_directory: ~/spleeter
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- python-3.7-cache-{{ checksum requirements.txt }}
|
||||||
|
- python-3.7-cache-
|
||||||
- run:
|
- run:
|
||||||
name: install ffmpeg
|
name: install ffmpeg
|
||||||
command: apt-get update && apt-get install -y ffmpeg
|
command: apt-get update && apt-get install -y ffmpeg
|
||||||
- run:
|
- run:
|
||||||
name: install spleeter
|
name: install python dependencies
|
||||||
command: pip install .
|
command: pip install -r requirements.txt && pip install pytest
|
||||||
|
- save_cache:
|
||||||
|
key: python-3.7-cache-{{ checksum requirements.txt }}
|
||||||
|
paths:
|
||||||
|
- "/usr/local/bin"
|
||||||
|
- "/usr/local/lib/python3.7/site-packages"
|
||||||
- run:
|
- run:
|
||||||
name: test separation
|
name: pytest
|
||||||
command: spleeter separate -i audio_example.mp3 -o .
|
command: pytest -W ignore::FutureWarning -W ignore::DeprecationWarning
|
||||||
upload:
|
pypi-deploy:
|
||||||
docker:
|
docker:
|
||||||
- image: python:3
|
- image: python:3
|
||||||
steps:
|
steps:
|
||||||
@@ -30,11 +63,13 @@ workflows:
|
|||||||
version: 2
|
version: 2
|
||||||
test-and-deploy:
|
test-and-deploy:
|
||||||
jobs:
|
jobs:
|
||||||
- test
|
- test-3.6
|
||||||
- upload:
|
- test-3.7
|
||||||
|
- pypi-deploy:
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
requires:
|
requires:
|
||||||
- test
|
- test-3.6
|
||||||
|
- test-3.7
|
||||||
7
requirements.txt
Normal file
7
requirements.txt
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
importlib_resources; python_version<'3.7'
|
||||||
|
requests
|
||||||
|
setuptools>=41.0.0
|
||||||
|
pandas==0.25.1
|
||||||
|
tensorflow==1.14.0
|
||||||
|
ffmpeg-python
|
||||||
|
norbert==0.2.1
|
||||||
Reference in New Issue
Block a user