File size: 830 Bytes
9d6c005 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | @echo off
setlocal
cd /d "%~dp0"
if exist .venv\Scripts\python.exe goto dependencies
python -m venv .venv
if errorlevel 1 exit /b 1
:dependencies
.venv\Scripts\python.exe -m pip install -r requirements.txt
if errorlevel 1 exit /b 1
set OPENBLAS_NUM_THREADS=1
set OMP_NUM_THREADS=1
.venv\Scripts\python.exe -m unittest discover -s tests -v
if errorlevel 1 exit /b 1
.venv\Scripts\python.exe -m unittest discover -s legacy/code -p test_*.py -v
if errorlevel 1 exit /b 1
.venv\Scripts\python.exe scripts\benchmark_innovation.py
if errorlevel 1 exit /b 1
.venv\Scripts\python.exe scripts\benchmark_queries.py
if errorlevel 1 exit /b 1
.venv\Scripts\python.exe scripts\validate_release.py --require-replay
if errorlevel 1 exit /b 1
echo Completed. See innovation_reproduced, queries_reproduced and validation_reproduced.json.
endlocal
|