Update CI to run pytest

This commit is contained in:
jo 2021-06-07 23:58:16 +02:00
parent bec298d63f
commit ed3d527c09
4 changed files with 24 additions and 13 deletions

View file

@ -0,0 +1,16 @@
.PHONY: lint test
SHELL := bash
CPU_CORES := $(shell nproc)
MODULE_APP := airtime_analyzer
MODULE_TESTS := tests
lint:
pylint ${MODULE_APP}
pylint ${MODULE_TESTS}
test:
pytest -n ${CPU_CORES} --color=yes -v --cov=${MODULE_APP} ${MODULE_TESTS}
all: lint test