@echo off

set CUDA_VER=%1
set PY_VER=%2
set "CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v%CUDA_VER%"
set PY_PATH=C:\Development\Python\Python%PY_VER%
set PATH=%CUDA_PATH%\bin;%CUDA_PATH%\libnvvp;%PY_PATH%;%PY_PATH%\Scripts\%PATH%

pip install --pre cupy-cuda101
pip install -e .[test]
pip install "onnx<1.7.0" onnxruntime pytest-cov
pip list -v

pytest -x -s -vvvs tests\onnx_chainer_tests --cov onnx_chainer

@echo off

set CUDA_VER=%1
set PY_VER=%2
set "CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v%CUDA_VER%"
set PY_PATH=C:\Development\Python\Python%PY_VER%
set PATH=%CUDA_PATH%\bin;%CUDA_PATH%\libnvvp;%PY_PATH%;%PY_PATH%\Scripts\%PATH%

pip install --pre cupy-cuda101
pip install -e .[test]
pip install "onnx<1.7.0" onnxruntime==1.2.0 pytest-cov
pip list -v

pytest -x -s -vvvs tests\onnx_chainer_tests --cov onnx_chainer

Fix onnxruntime version for CI failure
Fix onnxruntime version for CI failure
