.PHONY: install test runtime-run conformance container-build ecosystem-regression

UV ?= uv
ECOSYSTEM_REGRESSION ?= /home/worsch/the-custodian/scripts/hub-ecosystem-regression.sh
IMAGE_REPOSITORY ?= forgejo.coulomb.social/coulomb/hub-core
IMAGE_TAG ?= dev

install:
	$(UV) sync

test:
	$(UV) run python -m pytest -q

runtime-run:
	$(UV) run --extra runtime hub-core api

conformance:
	$(UV) run hub-core conformance --base-url $${HUB_CORE_API_BASE:-http://127.0.0.1:8010}

container-build:
	docker build -f Containerfile -t $(IMAGE_REPOSITORY):$(IMAGE_TAG) .

ecosystem-regression:
	bash $(ECOSYSTEM_REGRESSION)
