forked from mblayman/homeschool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (41 loc) · 1.09 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
.PHONY: docs local
local:
heroku local -f Procfile.dev
deploy:
git push heroku main
graph:
./manage.py graph_models \
--rankdir BT \
accounts \
core \
courses \
notifications \
referrals \
reports \
schools \
students \
teachers \
users \
-o models.png
# For the next time I think about making this faster:
# -n auto --dist loadfile, 8 CPUs, 445 tests, 1m15s
# -n 4 --dist loadfile, 4 CPUs, 445 tests, 43s
# -n 2 --dist loadfile, 4 CPUs, 445 tests, 39s
# no parallelism, 445 tests, 41s
coverage:
pytest --cov=homeschool --migrations -n 2 --dist loadfile
# fcof == "fast coverage" by skipping migrations checking. Save that for CI.
# -n 8 --dist loadfile, 8 CPUs, 515 tests, 20s
# -n 4 --dist loadfile, 4 CPUs, 515 tests, 13s
# -n 2 --dist loadfile, 4 CPUs, 515 tests, 15s
fcov:
@echo "Running fast coverage check"
@pytest --cov=homeschool -n 4 --dist loadfile -q
mypy:
mypy homeschool project manage.py
docs:
make -C docs html
servedocs:
cd docs/_build/html && python3 -m http.server
pip:
pip-compile --output-file requirements.txt requirements.in