From 39a6b50e148d64c920805c6b663d6f628b03198b Mon Sep 17 00:00:00 2001 From: Kris Thielemans Date: Sat, 16 Sep 2023 17:11:12 +0100 Subject: [PATCH] [Appveyor] run pytest [actions skip] --- .appveyor.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index 726d590a70..268db2b143 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -35,12 +35,13 @@ build_script: - for /D %%d in (C:\Miniconda*-x64) do set MINICONDA=%%d - echo Using Miniconda %MINICONDA% - "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%MINICONDA%\\Library\\bin;%PATH%" + - "set PYTHON=MINICONDA%\\python.exe" # install parallelproj and Python stuff - conda install -c conda-forge -yq libparallelproj swig numpy pytest - mkdir build - mkdir install - cd build - - cmake.exe .. -DCMAKE_INSTALL_PREFIX="C:\projects\stir\install" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCMAKE_CONFIGURATION_TYPES=%CONFIGURATION% -DSTIR_OPENMP:BOOL=ON -DBUILD_DOCUMENTATION:BOOL=OFF -DBUILD_SWIG_PYTHON:BOOL=ON -DPython_EXECUTABLE="%MINICONDA%\python.exe" + - cmake.exe .. -DCMAKE_INSTALL_PREFIX="C:\projects\stir\install" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCMAKE_CONFIGURATION_TYPES=%CONFIGURATION% -DSTIR_OPENMP:BOOL=ON -DBUILD_DOCUMENTATION:BOOL=OFF -DBUILD_SWIG_PYTHON:BOOL=ON -DPython_EXECUTABLE="%PYTHON%" - cmake.exe --build . --config %CONFIGURATION% - cmake.exe --build . --target install --config %CONFIGURATION% @@ -49,3 +50,5 @@ test_script: - ctest --output-on-failure -C %CONFIGURATION% - cd ..\recon_test_pack - run_tests --nointbp "C:\projects\stir\install\bin\" + - cd ..\src + - "%PYTHON% -m pytest ."