fix: add python version wf

This commit is contained in:
Félix Voituret
2019-11-08 19:23:26 -05:00
parent 1e90bfb6ff
commit 5f67eec9a2
2 changed files with 51 additions and 9 deletions

View File

@@ -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
View 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