diff --git a/.circleci/config.yml b/.circleci/config.yml index b769876..d5b5267 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 \ No newline at end of file + - test-3.6 + - test-3.7 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8e1f7be --- /dev/null +++ b/requirements.txt @@ -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 \ No newline at end of file