-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
70 lines (52 loc) · 2.26 KB
/
Makefile
File metadata and controls
70 lines (52 loc) · 2.26 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
65
66
67
68
69
70
.PHONY: test test-cov test-fast test-docker lint format clean help build build-clean publish publish-test dist-check demo-gif demo-gif-vhs
help: ## Show this help message
@echo 'Usage: make [target]'
@echo ''
@echo 'Available targets:'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " %-20s %s\n", $$1, $$2}'
test: ## Run all tests with coverage
pytest -v --cov=src/open_orchestrator --cov-report=term-missing --cov-report=html --cov-report=xml
test-cov: ## Run tests and open HTML coverage report
pytest -v --cov=src/open_orchestrator --cov-report=html
@echo "Opening coverage report..."
@open htmlcov/index.html || xdg-open htmlcov/index.html || echo "Please open htmlcov/index.html manually"
test-fast: ## Run tests excluding slow tests
pytest -v -m "not slow"
test-docker: ## Run tests in Docker container
docker compose -f docker-compose.test.yml up --build
test-docker-interactive: ## Start interactive Docker test environment
docker compose -f docker-compose.test.yml run --rm test-interactive
lint: ## Run linting checks
ruff check src/ tests/
mypy src/
format: ## Format code with ruff
ruff format src/ tests/
clean: ## Clean up test artifacts
rm -rf .pytest_cache
rm -rf htmlcov
rm -rf .coverage
rm -rf coverage.xml
rm -rf .mypy_cache
rm -rf .ruff_cache
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete
install: ## Install package with dev dependencies
pip install -e ".[dev]"
install-uv: ## Install package with dev dependencies using uv
uv pip install -e ".[dev]"
build: ## Build wheel and sdist distributions
python -m build
build-clean: ## Clean and rebuild distributions
rm -rf dist/ build/ *.egg-info src/*.egg-info
python -m build
dist-check: ## Check distribution files with twine
twine check dist/*
publish-test: ## Publish to TestPyPI
twine upload --repository testpypi dist/*
publish: ## Publish to PyPI
twine upload dist/*
demo-gif: ## Generate demo GIF for README
python scripts/generate_demo.py
demo-gif-vhs: ## Generate demo GIF using VHS (requires VHS installed)
@command -v vhs >/dev/null 2>&1 || { echo "VHS not found. Install with: brew install charmbracelet/tap/vhs"; exit 1; }
vhs assets/demo.tape