openenergysphere-federated-.../test.sh

12 lines
395 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" "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."