idea83-mercuriusmesh-cross-.../test.sh

16 lines
403 B
Bash

#!/usr/bin/env bash
set -euo pipefail
echo "Running tests..."
# ensure package dir is importable for pytest
export PYTHONPATH="$(pwd)"
echo "Installing test dependencies (pydantic, pytest, build)..."
python3 -m pip install --quiet --upgrade pip
python3 -m pip install --quiet pydantic pytest build
pytest -q
echo "Building source distribution and wheel..."
python3 -m build
echo "All checks passed."