#!/bin/bash

set -e

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


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

echo 'Done.'
