#!/bin/bash

set -e

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

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

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

echo 'Done!'
