reportist/Makefile

23 lines
527 B
Makefile

.PHONY: help render validate test check
INPUT ?= examples/example-report.yaml
OUTPUT ?= build/report.pdf
help:
@echo 'make render INPUT=report.yaml OUTPUT=report.pdf'
@echo 'make validate INPUT=report.yaml'
@echo 'make test'
render:
bash tools/render.sh "$(INPUT)" --output "$(OUTPUT)"
validate:
bash tools/validate.sh "$(INPUT)"
test:
uv venv --python 3.11 --allow-existing .venv
uv pip sync --python .venv/bin/python requirements.txt
.venv/bin/python -m unittest discover -s tests -p 'test_*.py' -v
check: test