Files
SIA/scripts/test.sh
2025-03-24 10:53:51 +00:00

20 lines
525 B
Bash
Executable File

#!/bin/bash
docker build \
--tag sia \
.
# Run tests within the SIA virtual environment
docker run \
--rm \
-ti \
--gpus=all \
-p 8080:8080 \
--env-file .env \
-v /$(pwd)/model/:/root/models/current/ \
-v /$(pwd)/iterations/:/root/data/iterations/ \
-v /$(pwd)/tasks/:/root/data/tasks/ \
-v /$(pwd)/user/:/root/data/user/ \
-v /$(pwd)/environment/:/root/data/environment/ \
-v /$(pwd)/:/root/sia/ \
sia /root/venvs/sia/bin/python -m unittest discover -v -p "*test.py"