#!/bin/bash

set -e

# run linting of python and yaml files
echo 'Running linting...'
uv run ty check
uv run ruff check
uv run ruff format --check


# run pytest with args set
echo 'Running tests...'
uv run pytest -v tests/unit/ \
		--cov app/ \
		--cov-report xml \
		--cov-report term \
		--junitxml=pyunit.xml

echo 'Done.'
