15 lines
365 B
Bash
Executable File
15 lines
365 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
export PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}$PWD/src"
|
|
|
|
echo "Installing test dependencies (fastapi, httpx, pydantic, etc.)"
|
|
pip install --upgrade --quiet fastapi httpx pydantic
|
|
|
|
echo "Running tests (pytest)"
|
|
pytest -q
|
|
|
|
echo "Building package (python -m build)"
|
|
python3 -m build
|
|
|
|
echo "All tests passed and package built."
|