prompt-prix / scripts /docker-test.sh
3v324v23's picture
Fix dispatcher race condition and refactor for type safety
7e92be5
Raw
History Blame Contribute Delete
384 Bytes
#!/bin/bash
# Run tests inside Docker container
# Usage: ./scripts/docker-test.sh [pytest args...]
set -e
# Build image first
docker compose build --quiet
# Run tests with mounted volumes
docker compose run --rm \
-v "$(pwd)/tests:/app/tests" \
-v "$(pwd)/examples:/app/examples" \
prompt-prix sh -c "pip install pytest pytest-asyncio respx -q && python -m pytest tests/ $*"