idea176-goc-synth-automated/test.sh

17 lines
531 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# Ensure Python can import the local package when running tests from
# arbitrary working directories. This makes the package importable as
# 'idea176_goc_synth_automated' during CI/test runs without installing it.
export PYTHONPATH="/workspace/repo:${PYTHONPATH:-}"
# Install the package and its runtime dependency.
python3 -m pip install -e .
# Run unit tests and packaging checks
pytest -q
# Build the Python package to verify packaging metadata and directory structure
python3 -m build