15 lines
367 B
Bash
Executable File
15 lines
367 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Ensure the repository root is on PYTHONPATH so tests can import the local package
|
|
# even when the package isn't installed yet in the environment.
|
|
export PYTHONPATH=$(pwd)${PYTHONPATH:+":$PYTHONPATH"}
|
|
|
|
echo "Running tests..."
|
|
pytest -q
|
|
|
|
echo "Running packaging build..."
|
|
python3 -m build
|
|
|
|
echo "All tests and build succeeded."
|