#!/bin/bash

set -e

# Root directory of the tests: lambda-content/tests
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

echo "Root directory is: $ROOT_DIR"
echo "▶ Running linting..."
yamllint -s docker-compose.yaml
ruff check .
ruff format . --check --diff
mypy sfn_integration_tests/ config.py

echo "Running Step Function Integration Tests..."

pytest $ROOT_DIR/sfn_integration_tests/test*.py
echo "Step Function Integration Tests are Done. "
