-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (49 loc) · 1.99 KB
/
Makefile
File metadata and controls
65 lines (49 loc) · 1.99 KB
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: help start stop status restart backend frontend test clean
help: ## Show this help message
@echo "LineageGraph Service Management"
@echo ""
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " %-15s %s\n", $$1, $$2}'
start: ## Start all infrastructure services (PostgreSQL, Ollama)
@./scripts/manage.sh start
stop: ## Stop all services
@./scripts/manage.sh stop
status: ## Show status of all services
@./scripts/manage.sh status
restart: ## Restart all services
@./scripts/manage.sh restart
backend: ## Start FastAPI backend server
@echo "Starting FastAPI backend..."
@cd $(shell pwd) && source venv/bin/activate && python src/main.py
frontend: ## Start frontend dev server
@echo "Starting frontend dev server..."
@cd frontend && npm run dev
test: ## Run all tests
@echo "Running tests..."
@pytest tests/ -v
test-eval: ## Run evaluation pipeline tests
@echo "Running evaluation tests..."
@pytest tests/test_evaluation_pipeline.py -v
test-unit: ## Run unit tests only
@echo "Running unit tests..."
@pytest tests/test_agent_tools.py tests/test_agent_graph.py -v
test-integration: ## Run integration tests only
@echo "Running integration tests..."
@pytest tests/test_week1_5_integration.py -v
clean: ## Clean up temporary files and caches
@echo "Cleaning up..."
@find . -type d -name "__pycache__" -exec rm -r {} + 2>/dev/null || true
@find . -type f -name "*.pyc" -delete 2>/dev/null || true
@find . -type f -name "*.pyo" -delete 2>/dev/null || true
@find . -type d -name "*.egg-info" -exec rm -r {} + 2>/dev/null || true
@echo "Cleanup complete"
install: ## Install Python dependencies
@echo "Installing Python dependencies..."
@pip install -r requirements.txt
install-frontend: ## Install frontend dependencies
@echo "Installing frontend dependencies..."
@cd frontend && npm install
setup: install install-frontend ## Initial setup: install all dependencies
@echo "Setup complete!"