12 lines
411 B
Bash
12 lines
411 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
export PYTHONPATH=./src
|
|
echo "Installing dependencies..."
|
|
pip install --upgrade pip setuptools wheel >/dev/null 2>&1 || true
|
|
pip install "pydantic>=1.10.2" "fastapi>=0.90.0" "httpx>=0.23.0" "uvicorn[standard]>=0.18.0" "pytest>=7.0.0" >/dev/null 2>&1 || true
|
|
echo "Running tests..."
|
|
pytest -q
|
|
echo "Running packaging build..."
|
|
python3 -m build
|
|
echo "All tests and build succeeded."
|