forked from Al-does/metta
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 934 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 934 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
28
29
30
31
32
33
34
35
36
.PHONY: help all dev test clean install pytest
# Default target when just running 'make'
help:
@echo "Available targets:"
@echo " dev - Prepare the dev environment"
@echo " test - Run all unit tests with coverage"
@echo " pytest - Run all unit tests"
@echo " all - Run dev and test"
@echo " clean - Remove cmake build artifacts and temporary files"
# Clean cmake build artifacts
clean:
@echo "(Metta) Running clean command..."
uv run --active metta clean
# Dev all project dependencies and external components
dev:
@echo "Running full devops/setup_dev.sh installation script..."
@bash devops/setup_dev.sh
test:
@echo "Running python tests with coverage"
uv run --active metta test --cov=metta --cov-report=term-missing --durations=10
install:
@echo "Installing package in editable mode..."
uv sync --inexact --active
pytest: install
@echo "Running Python tests..."
uv run --active metta test
all: dev test