#!/bin/bash

set -e

# run linting of python files
echo 'Running linting...'

poetry run ruff check promo_player/ tests/ application.py dev.py


# run pytest with args set
echo 'Running tests...'
PYTHONDONTWRITEBYTECODE=1 COVERAGE_FILE=build/.coverage poetry run pytest -v --ignore=tests/integration/ tests/ \
		-p no:cacheprovider \
		--cov promo_player \
		--cov-report xml:build/coverage.xml \
		--cov-report term \
		--junitxml=build/pyunit.xml

echo 'Done!'
