Update CI to run pytest
This commit is contained in:
parent
bec298d63f
commit
ed3d527c09
4 changed files with 24 additions and 13 deletions
16
python_apps/airtime_analyzer/Makefile
Normal file
16
python_apps/airtime_analyzer/Makefile
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue