-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 719 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (19 loc) · 719 Bytes
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
# Local equivalents of the CI gates.
.PHONY: test cov bench check install-dev gate cov-floor
install-dev:
pip install -e .[all,dev]
test:
pytest -q
cov:
pytest --cov --cov-report=term-missing
bench:
pytest benchmarks/ -q --no-cov --benchmark-disable-gc
bench-record:
UJIN_BENCH_RECORD=1 pytest benchmarks/ -q --no-cov --benchmark-disable-gc
check: cov
# Full merge gate — what the autonomous orchestrator runs before every merge, and
# what a human should run before pushing. Coverage (incl. tests) then benchmarks.
gate: cov bench
# Print the current total coverage % (used by the orchestrator's ratchet).
cov-floor:
@pytest --cov --cov-report=term-missing -q 2>/dev/null | awk '/^TOTAL/ {print $$NF}'