Spaces:
Runtime error
Runtime error
Commit
·
544f7af
1
Parent(s):
bd5f74b
chore(make): add integration test and cleanup commands
Browse filesNew make targets:
- test-integration: Run integration tests with verbose output
- test-all: Run all tests including integration
- clean: Remove cache files and __pycache__ directories
Usage:
make test-integration # Integration tests (requires Docker)
make test-all # All tests
make clean # Clean up caches
Makefile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
.PHONY: install test lint format check all
|
| 2 |
|
| 3 |
install:
|
| 4 |
uv sync
|
|
@@ -6,6 +6,14 @@ install:
|
|
| 6 |
test:
|
| 7 |
uv run pytest
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
lint:
|
| 10 |
uv run ruff check .
|
| 11 |
|
|
@@ -16,3 +24,8 @@ check:
|
|
| 16 |
uv run mypy src/ tests/
|
| 17 |
|
| 18 |
all: lint check test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.PHONY: install test test-integration test-all lint format check all clean
|
| 2 |
|
| 3 |
install:
|
| 4 |
uv sync
|
|
|
|
| 6 |
test:
|
| 7 |
uv run pytest
|
| 8 |
|
| 9 |
+
test-integration:
|
| 10 |
+
@echo "Running integration tests (requires Docker, optional: local data)..."
|
| 11 |
+
uv run pytest -m integration -v --timeout=600
|
| 12 |
+
|
| 13 |
+
test-all:
|
| 14 |
+
@echo "Running all tests including integration..."
|
| 15 |
+
uv run pytest -v --timeout=600
|
| 16 |
+
|
| 17 |
lint:
|
| 18 |
uv run ruff check .
|
| 19 |
|
|
|
|
| 24 |
uv run mypy src/ tests/
|
| 25 |
|
| 26 |
all: lint check test
|
| 27 |
+
|
| 28 |
+
clean:
|
| 29 |
+
rm -rf .pytest_cache .mypy_cache .ruff_cache __pycache__ .coverage coverage.xml
|
| 30 |
+
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
|
| 31 |
+
find . -type f -name "*.pyc" -delete 2>/dev/null || true
|