#!/bin/bash

set -e

# run linting of python and yaml files
echo 'Running linting...'
mypy app tests
ruff check app tests
ruff format app tests --check


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

echo 'Done.'
