chore: add Makefile with test and docker commands
This commit is contained in:
36
Makefile
Normal file
36
Makefile
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
.PHONY: test test-unit test-integration install dev build up down clean
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
install:
|
||||||
|
uv sync
|
||||||
|
|
||||||
|
# Run unit tests (excludes integration tests)
|
||||||
|
test-unit:
|
||||||
|
uv run pytest tests/ -v --ignore=tests/test_integration.py
|
||||||
|
|
||||||
|
# Run integration tests (requires Docker)
|
||||||
|
test-integration:
|
||||||
|
uv run pytest tests/test_integration.py -v -s
|
||||||
|
|
||||||
|
# Run all tests
|
||||||
|
test: test-unit
|
||||||
|
|
||||||
|
# Run dev server locally
|
||||||
|
dev:
|
||||||
|
uv run uvicorn app.main:app --reload
|
||||||
|
|
||||||
|
# Docker commands
|
||||||
|
build:
|
||||||
|
docker-compose build
|
||||||
|
|
||||||
|
up:
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
down:
|
||||||
|
docker-compose down
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
clean:
|
||||||
|
rm -rf .venv venv __pycache__ .pytest_cache
|
||||||
|
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
|
||||||
|
find . -type f -name "*.pyc" -delete 2>/dev/null || true
|
||||||
Reference in New Issue
Block a user