Files
mistral-ocr/build.sh
T
2025-04-24 20:54:50 +02:00

21 lines
350 B
Bash
Executable File

#!/bin/bash
set -e
# Create virtual environment if it doesn't exist
if [ ! -d "venv" ]; then
python3 -m venv venv
fi
# Activate virtual environment
source venv/bin/activate
# Install dependencies
pip install -e .
# Run tests if they exist
if [ -d "tests" ]; then
python -m unittest discover tests
fi
echo "Build completed successfully!"