forked from NVIDIA-Merlin/models
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
78 lines (59 loc) · 2.36 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
all: install tests lint tests-tf tests-tf-examples tests-torch tests-implicit tests-lightfm tests-datasets dist clean docstrings docs
install:
pip install -e .[all]
lint:
flake8 .
black --check .
isort -c .
check-manifest .
mypy transformers4rec --install-types --non-interactive --no-strict-optional --ignore-missing-imports
tests:
coverage run -m pytest -rsx || exit 1
coverage report --include 'merlin/models/*'
coverage html --include 'merlin/models/*'
tests-tf:
coverage run -m pytest --durations=100 --dist=loadfile --numprocesses=auto -rsx tests -m "tensorflow and not (integration or example)" || exit 1
coverage report --include 'merlin/models/*'
coverage html --include 'merlin/models/*'
tests-tf-examples:
coverage run -m pytest -rsx tests -m "tensorflow and example" || exit 1
coverage report --include 'merlin/models/*'
coverage html --include 'merlin/models/*'
tests-tf-integration:
coverage run -m pytest -rsx tests -m "tensorflow and integration" || exit 1
coverage report --include 'merlin/models/*'
coverage html --include 'merlin/models/*'
tests-torch:
coverage run -m pytest -rsx tests -m "torch" || exit 1
coverage report --include 'merlin/models/*'
coverage html --include 'merlin/models/*'
tests-implicit:
coverage run -m pytest -rsx tests -m "implicit" || exit 1
coverage report --include 'merlin/models/*'
coverage html --include 'merlin/models/*'
tests-lightfm:
coverage run -m pytest -rsx tests -m "lightfm" || exit 1
coverage report --include 'merlin/models/*'
coverage html --include 'merlin/models/*'
tests-xgboost:
coverage run -m pytest -rsx tests -m "xgboost" || exit 1
coverage report --include 'merlin/models/*'
coverage html --include 'merlin/models/*'
tests-datasets:
coverage run -m pytest -rsx tests -m "datasets" || exit 1
coverage report --include 'merlin/models/*'
coverage html --include 'merlin/models/*'
jenkins-tf:
coverage run -m pytest -rsx tests -m "tensorflow and not integration" || exit 1
coverage report --include 'merlin/models/*'
coverage html --include 'merlin/models/*'
dist:
python setup.py sdist
clean:
rm -r docs dist build *.egg-info
docstrings:
sphinx-apidoc -f -o docs/source/api models
docs:
cd docs && make html
cd docs/build/html/ && python -m http.server
.PHONY: install tests lint tests-tf tests-tf-examples tests-torch tests-implicit tests-lightfm tests-datasets dist clean docstrings docs