Split CI into quick and full modes
Browse files
Makefile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
.PHONY: all setup data data-validate eval eval-full eval-quick eval-summary demo demo-interview reset reset-eval reset-hard check-env qdrant-up qdrant-down qdrant-status eda serve serve-dev docker-build docker-run deploy-info deploy-health human-eval-workflow human-eval-generate human-eval human-eval-analyze human-eval-status fmt test lint typecheck ci info metrics-snapshot health load-test load-test-quick kaggle-test help
|
| 2 |
|
| 3 |
# ---------------------------------------------------------------------------
|
| 4 |
# Configurable Variables (override: make demo QUERY="gaming mouse")
|
|
@@ -313,7 +313,12 @@ typecheck:
|
|
| 313 |
test:
|
| 314 |
$(PYTHON) -m pytest tests/ -v
|
| 315 |
|
| 316 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 317 |
rm -rf .venv
|
| 318 |
python -m venv .venv
|
| 319 |
. .venv/bin/activate && pip install -e ".[dev,api,anthropic,openai,pipeline]" && \
|
|
@@ -321,7 +326,7 @@ ci:
|
|
| 321 |
$(RUFF) format --check sage/ scripts/ tests/ && \
|
| 322 |
$(MYPY) sage/ --ignore-missing-imports && \
|
| 323 |
$(PYTHON) -m pytest tests/ -v
|
| 324 |
-
@echo "
|
| 325 |
|
| 326 |
# ---------------------------------------------------------------------------
|
| 327 |
# Info & Metrics
|
|
@@ -529,7 +534,8 @@ help:
|
|
| 529 |
@echo " make lint Run ruff linter and formatter check"
|
| 530 |
@echo " make typecheck Run mypy type checking"
|
| 531 |
@echo " make test Run unit tests"
|
| 532 |
-
@echo " make ci
|
|
|
|
| 533 |
@echo ""
|
| 534 |
@echo "QDRANT:"
|
| 535 |
@echo " make qdrant-up Start Qdrant vector database (Docker)"
|
|
|
|
| 1 |
+
.PHONY: all setup data data-validate eval eval-full eval-quick eval-summary demo demo-interview reset reset-eval reset-hard check-env qdrant-up qdrant-down qdrant-status eda serve serve-dev docker-build docker-run deploy-info deploy-health human-eval-workflow human-eval-generate human-eval human-eval-analyze human-eval-status fmt test lint typecheck ci ci-full info metrics-snapshot health load-test load-test-quick kaggle-test help
|
| 2 |
|
| 3 |
# ---------------------------------------------------------------------------
|
| 4 |
# Configurable Variables (override: make demo QUERY="gaming mouse")
|
|
|
|
| 313 |
test:
|
| 314 |
$(PYTHON) -m pytest tests/ -v
|
| 315 |
|
| 316 |
+
# Quick CI: uses existing venv (fast iteration)
|
| 317 |
+
ci: lint typecheck test
|
| 318 |
+
@echo "CI checks passed"
|
| 319 |
+
|
| 320 |
+
# Full CI: fresh venv install + all checks (pre-commit validation)
|
| 321 |
+
ci-full:
|
| 322 |
rm -rf .venv
|
| 323 |
python -m venv .venv
|
| 324 |
. .venv/bin/activate && pip install -e ".[dev,api,anthropic,openai,pipeline]" && \
|
|
|
|
| 326 |
$(RUFF) format --check sage/ scripts/ tests/ && \
|
| 327 |
$(MYPY) sage/ --ignore-missing-imports && \
|
| 328 |
$(PYTHON) -m pytest tests/ -v
|
| 329 |
+
@echo "Full CI passed (fresh venv)"
|
| 330 |
|
| 331 |
# ---------------------------------------------------------------------------
|
| 332 |
# Info & Metrics
|
|
|
|
| 534 |
@echo " make lint Run ruff linter and formatter check"
|
| 535 |
@echo " make typecheck Run mypy type checking"
|
| 536 |
@echo " make test Run unit tests"
|
| 537 |
+
@echo " make ci Quick CI: lint + typecheck + test (uses existing venv)"
|
| 538 |
+
@echo " make ci-full Full CI: fresh venv + all checks (pre-commit)"
|
| 539 |
@echo ""
|
| 540 |
@echo "QDRANT:"
|
| 541 |
@echo " make qdrant-up Start Qdrant vector database (Docker)"
|