forked from NVIDIA-Merlin/models
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
124 lines (95 loc) · 4.15 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
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-changed:
coverage run -m pytest -rsx -m "changed" || 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 examples or notebook)" || exit 1
coverage report --include 'merlin/models/*'
coverage html --include 'merlin/models/*'
tests-tf-examples:
coverage run -m pytest -rsx tests -m "tensorflow and (examples or notebook)" || 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-tf-changed:
coverage run -m pytest --durations=100 --dist=loadfile --numprocesses=auto -rsx tests -m "tensorflow and changed and not (integration or examples or notebook) or always" || exit 1
coverage report --include 'merlin/models/*'
coverage html --include 'merlin/models/*'
tests-tf-examples-changed:
coverage run -m pytest -rsx tests -m "tensorflow and changed and (examples or notebook)" || exit 1
coverage report --include 'merlin/models/*'
coverage html --include 'merlin/models/*'
tests-tf-integration-changed:
coverage run -m pytest -rsx tests -m "tensorflow and changed 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/torch/*'
coverage html --include 'merlin/models/torch/*'
tests-torch-changed:
coverage run -m pytest -rsx tests -m "torch and changed" || exit 1
coverage report --include 'merlin/models/torch/*'
coverage html --include 'merlin/models/torch/*'
tests-implicit:
coverage run -m pytest -rsx tests -m "implicit" || exit 1
coverage report --include 'merlin/models/*'
coverage html --include 'merlin/models/*'
tests-implicit-changed:
coverage run -m pytest -rsx tests -m "implicit and changed" || 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-lightfm-changed:
coverage run -m pytest -rsx tests -m "lightfm and changed" || 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-xgboost-changed:
coverage run -m pytest -rsx tests -m "xgboost and changed" || 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/*'
tests-datasets-changed:
coverage run -m pytest -rsx tests -m "datasets and changed" || 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