Makefile: add py-test and test targets
This commit is contained in:
@@ -2,7 +2,7 @@ SHELL := /bin/sh
|
||||
|
||||
BUF ?= buf
|
||||
|
||||
.PHONY: buf-lint buf-generate py-sync go-test compose-up compose-up-dev run-server
|
||||
.PHONY: buf-lint buf-generate py-sync py-test go-test test compose-up compose-up-dev run-server
|
||||
|
||||
buf-lint:
|
||||
$(BUF) lint
|
||||
@@ -13,9 +13,19 @@ buf-generate:
|
||||
py-sync:
|
||||
uv sync --project python --all-packages
|
||||
|
||||
py-test:
|
||||
@set -e; \
|
||||
if [ -n "$${TEST:-}" ]; then \
|
||||
uv run --project python --package officeconvert python -m unittest "$$TEST"; \
|
||||
else \
|
||||
uv run --project python --package officeconvert python -m unittest discover -s python/packages/officeconvert/tests; \
|
||||
fi
|
||||
|
||||
go-test:
|
||||
go test ./...
|
||||
|
||||
test: go-test py-test
|
||||
|
||||
compose-up:
|
||||
docker compose --env-file .env.example -f deploy/docker-compose.yml up --build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user