refactor: Makefile

test: improve separator test
test: start pypi dist test
This commit is contained in:
Félix Voituret
2019-11-14 14:44:19 -05:00
parent da3947e49d
commit ff539bd26c
4 changed files with 46 additions and 16 deletions

View File

@@ -18,8 +18,8 @@ jobs:
name: install python dependencies
command: pip install -r requirements.txt && pip install pytest pytest-xdist
- run:
name: pytest
command: pytest -W ignore::FutureWarning -W ignore::DeprecationWarning -vv --forked
name: run tests
command: make test
- save_cache:
key: models-{{ checksum "spleeter/model/__init__.py" }}
paths:
@@ -42,8 +42,8 @@ jobs:
name: install python dependencies
command: pip install -r requirements.txt && pip install pytest pytest-xdist
- run:
name: pytest
command: pytest -W ignore::FutureWarning -W ignore::DeprecationWarning -vv --forked
name: run tests
command: make test
- save_cache:
key: models-{{ checksum "spleeter/model/__init__.py" }}
paths:
@@ -57,8 +57,8 @@ jobs:
steps:
- checkout
- run:
name: package
command: python setup.py sdist
name: package source distribution
command: make build
- save_cache:
key: sdist-{{ .Branch }}-{{ checksum "setup.py" }}
paths:
@@ -78,7 +78,7 @@ jobs:
# TODO: Infer destination regarding of branch.
# - master => production PyPi
# - development => testing PyPi
command: pip install twine && twine upload dist/*
command: make deploy
# =======================================================================================
# Conda distribution.