-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (20 loc) · 869 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright 2021-2022 Gradient Institute Ltd. <[email protected]>
help:
@echo "typecheck - run mypy typechecking"
@echo "typecheck-xml - run mypy typechecking with junit output"
@echo "lint - run flake8 checks"
@echo "lint-xml - run flake8 checks with junit output"
@echo "pytest - run unit tests"
@echo "pytest-xml - run unit tests with junit output"
typecheck:
mypy deva tests server/mlserver
typecheck-xml:
mypy deva tests server/mlserver | mypy2junit > ./tests/results/mypy.xml
lint:
flake8 deva tests server/mlserver
lint-xml:
flake8 deva tests server/mlserver --tee --output-file ./tests/results/flake8.txt || flake8_junit ./tests/results/flake8.txt ./tests/results/flake8.xml
test:
pytest . --cov=deva tests/
test-xml:
py.test --junitxml=tests/results/cov.xml --cov=deva --cov-report=html:tests/results/coverage --cache-clear tests/