-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (39 loc) · 947 Bytes
/
Makefile
File metadata and controls
50 lines (39 loc) · 947 Bytes
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
all: lint test-smoke
# Linting & formatting
lint:
uv run ruff check .
format:
uv run ruff format .
# Build package
build:
uv build --clear
# CI-safe smoke tests
test-smoke:
rm -rf .venv_smoke
uv venv .venv_smoke
. .venv_smoke/bin/activate && \
uv sync --active && \
uv pip install -e . && \
uv run --active pytest -m smoke -q ; \
deactivate
rm -rf .venv_smoke
# Local integration tests (with torch)
test-integration:
rm -rf .venv_test
uv venv .venv_test
. .venv_test/bin/activate && \
uv sync --active && \
uv sync --active --group torch --group dev && \
uv pip install -e . && \
uv run --active pytest -m integration -v ; \
deactivate
rm -rf .venv_test
# Wheel sanity check
test-build: build
rm -rf .venv_test
uv venv .venv_test
. .venv_test/bin/activate && \
uv pip install dist/*.whl && \
python -c "import vaas; print('Imported VAAS version:', vaas.__version__)" ; \
deactivate
rm -rf .venv_test