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