mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-06 04:32:43 +00:00
fix: add python version wf
This commit is contained in:
@@ -1,21 +1,54 @@
|
||||
version: 2
|
||||
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:
|
||||
- image: python:3.7
|
||||
working_directory: ~/spleeter
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- python-3.7-cache-{{ checksum requirements.txt }}
|
||||
- python-3.7-cache-
|
||||
- run:
|
||||
name: install ffmpeg
|
||||
command: apt-get update && apt-get install -y ffmpeg
|
||||
- run:
|
||||
name: install spleeter
|
||||
command: pip install .
|
||||
name: install python dependencies
|
||||
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:
|
||||
name: test separation
|
||||
command: spleeter separate -i audio_example.mp3 -o .
|
||||
upload:
|
||||
name: pytest
|
||||
command: pytest -W ignore::FutureWarning -W ignore::DeprecationWarning
|
||||
pypi-deploy:
|
||||
docker:
|
||||
- image: python:3
|
||||
steps:
|
||||
@@ -30,11 +63,13 @@ workflows:
|
||||
version: 2
|
||||
test-and-deploy:
|
||||
jobs:
|
||||
- test
|
||||
- upload:
|
||||
- test-3.6
|
||||
- test-3.7
|
||||
- pypi-deploy:
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
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