#!/bin/bash

set -e

poetry run ruff check project_manager/ tests/


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

echo 'Done!'
