#!/bin/bash

set -e

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

ruff check sales_goals/ tests/ application.py dev.py


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

echo 'Done!'
