Spaces:
Running
Running
File size: 384 Bytes
7e92be5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/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/ $*"
|