-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
46 lines (34 loc) · 976 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
HOST ?= 0.0.0.0
PORT ?= 8080
TEST_NP ?= 4
run:
uvicorn sandbox.server.server:app --reload --host $(HOST) --port $(PORT)
run-online:
uvicorn sandbox.server.server:app --host $(HOST) --port $(PORT)
build-server-image:
docker build . -f scripts/Dockerfile.server -t sandbox:server
test:
pytest -m "not cuda and not datalake and not dp_eval and not lean" -n $(TEST_NP)
test-cuda:
pytest -m cuda
test-minor:
pytest -m minor
test-verilog:
pytest -m verilog
test-verilog-pdb:
pytest -m verilog --pdb --capture=no
test-online:
ONLINE_TEST=1 pytest
test-case:
pytest -s -vv -k $(CASE)
format:
pycln --config pyproject.toml
isort sandbox/*
yapf -ir sandbox/*
format-client:
mv scripts/client/pyproject.toml scripts/faas/pyproject.toml && yapf -ir scripts/client/* && mv scripts/faas/pyproject.toml scripts/client/pyproject.toml
# mypy --explicit-package-bases sandbox
check:
pycln --config pyproject.toml --check
yapf --diff --recursive sandbox/*
make test