-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 660 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 660 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
SHELL := /bin/bash
UV := UV_CACHE_DIR=/tmp/uv-cache uv
all: compose.yaml
compose.yaml: uv.lock
set -x && \
. .venv/bin/activate && \
VER=$$(uv pip freeze|grep chromadb==|sed "s/.*==//") && \
uv pip freeze && \
test -n "$$VER" && \
echo "$$VER" && \
sed -i -e "s@ghcr.io/chroma-core/chroma:.*@ghcr.io/chroma-core/chroma:$$VER@" compose.yaml
uv.lock: pyproject.toml
$(UV) sync --all-extras
touch uv.lock
.PHONY: sync-test test test-unit test-integration
sync-test:
$(UV) sync --extra test
test: sync-test
$(UV) run pytest
test-unit: sync-test
$(UV) run pytest -m "not integration"
test-integration: sync-test
$(UV) run pytest -m integration