Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a0e747-8f27-7242-8df8-8bc44f88c929
37 lines
1.3 KiB
Makefile
37 lines
1.3 KiB
Makefile
.PHONY: install test runtime-run conformance container-build ecosystem-regression inventory-check package-check ci-check postgres-test
|
|
|
|
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 --locked --extra runtime 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)
|
|
|
|
# Local equivalents of the required CI gates.
|
|
inventory-check:
|
|
$(UV) run --locked --extra runtime python tools/build_access_inventory.py --inventory docs/platform-access-inventory.json --check
|
|
|
|
package-check:
|
|
$(UV) build --out-dir dist/ci
|
|
@set -eu; set -- dist/ci/*.whl; test "$$#" -eq 1; $(UV) run --no-project --isolated --refresh-package hub-core --with "$$1" python -I tools/check_installed_package.py
|
|
|
|
postgres-test:
|
|
HUB_CORE_TEST_POSTGRES=1 $(UV) run --locked --extra runtime python -m pytest -q tests/test_postgres_integration.py
|
|
|
|
ci-check: test inventory-check package-check postgres-test
|