Skip to content

Commit 39f0d5f

Browse files
feat: add smoke-test target to Makefile for package validation
1 parent c637ad8 commit 39f0d5f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: help install test lint format clean repl demo docs-preview
1+
.PHONY: help install test lint format clean repl demo docs-preview smoke-test
22

33
help:
44
@echo "Setup:"
@@ -16,6 +16,8 @@ help:
1616
@echo "Docs:"
1717
@echo " make docs-preview Build and preview the documentation site"
1818
@echo ""
19+
@echo " make smoke-test Build dist and run smoke checks against wheel and sdist"
20+
@echo ""
1921
@echo "Maintenance:"
2022
@echo " make clean Clean build artifacts"
2123

@@ -67,6 +69,11 @@ docs-preview:
6769
npm --prefix docs run preview
6870

6971
clean:
70-
rm -rf .pytest_cache htmlcov .coverage
72+
rm -rf .pytest_cache htmlcov .coverage dist build
7173
find . -type d -name __pycache__ -exec rm -rf {} +
7274
find . -type f -name "*.pyc" -delete
75+
76+
smoke-test:
77+
uv build
78+
uv run -n --isolated --no-project --with dist/*.whl python tests/smoke_check.py
79+
uv run -n --isolated --no-project --with dist/*.tar.gz python tests/smoke_check.py

0 commit comments

Comments
 (0)