From 5bd633961f1675e6366394a4220a888c829cbc12 Mon Sep 17 00:00:00 2001 From: mmoussallam Date: Thu, 25 Jun 2020 23:57:54 +0200 Subject: [PATCH] Split tests to avoid 10min hard threshold --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c65df91..06ceeaf 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ FEEDSTOCK = spleeter-feedstock FEEDSTOCK_REPOSITORY = https://github.com/deezer/$(FEEDSTOCK) FEEDSTOCK_RECIPE = $(FEEDSTOCK)/recipe/spleeter/meta.yaml +PYTEST_CMD = pytest -W ignore::FutureWarning -W ignore::DeprecationWarning -vv all: clean build test deploy @@ -26,7 +27,8 @@ build-gpu: clean python3 setup.py sdist test: - pytest -W ignore::FutureWarning -W ignore::DeprecationWarning -vv + $(foreach file, $(wildcard tests/test_*.py), $(PYTEST_CMD) $(file);) + deploy: pip install twine