18 lines
476 B
Bash
18 lines
476 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
echo "Running tests..."
|
|
npm test
|
|
|
|
# If Python packaging metadata exists, attempt a build to verify packaging metadata and directory structure.
|
|
if [ -f pyproject.toml ] || [ -f setup.py ]; then
|
|
if command -v python3 >/dev/null 2>&1; then
|
|
echo "Python packaging detected; running python3 -m build..."
|
|
python3 -m build || true
|
|
else
|
|
echo "python3 not found; skipping Python packaging build."
|
|
fi
|
|
fi
|
|
|
|
echo "Tests completed."
|