#!/bin/bash

set -e

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

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

echo 'Done!'
