-
Notifications
You must be signed in to change notification settings - Fork 61
/
Makefile
64 lines (53 loc) · 1.39 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
#.PHONY: test-training-agent-interface
#test-training-agent-interface:
# PYTHONHASHSEED=24 pytest -v
#
#.PHONY: test-learning
#test-learning:
#
#.PHONY: profiling
#profiling:
# run visualization for cov_html: ruby -run -ehttpd . -p8000
.PHONY: clean
clean:
rm -rf ./logs/*
.PHONY: format
format:
# pip install black==20.8b1
black .
.PHONY: docs-compile
docs-compile:
(cd docs; make clean html)
.PHONY: docs-view
docs-view:
python -m http.server 8000 -d docs/build/html/
.PHONY: rm-pycache
rm-pycache:
find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
.PHONY: test
test:
pytest --cov-config=.coveragerc --cov=malib --cov-report term --cov-report html --doctest-modules tests
rm -f .coverage.*
.PYTHON: test-rollout
test-rollout:
pytest --cov-config=.coveragerc --cov=malib/rollout tests/rollout
rm -f .coverage.*
.PYTHON: test-rl
test-rl:
pytest --cov-config=.coveragerc --cov=malib/rl tests/rl
rm -f .coverage.*
.PYTHON: test-backend
test-backend:
pytest --cov-config=.coveragerc --cov=malib/backend tests/backend
rm -f .coverage.*
.PYTHON: test-agents
test-agents:
pytest --cov-config=.coveragerc --cov=malib/agent tests/agents
rm -f .coverage.*
.PYTHON: coverage-view
coverage-view:
python -m http.server 8000 -d cov_html
.PHONY: test-verbose
test-verbose:
pytest --cov-config=.coveragerc --cov=malib --cov-report html --doctest-modules tests -v -s
rm -f .coverage.*