Skip to content

Commit

Permalink
CI: Windows Pre-Install Python Tests
Browse files Browse the repository at this point in the history
Make sure one can run Python tests without prior install on Windows.
  • Loading branch information
ax3l committed Mar 31, 2023
1 parent 022035a commit 1d4e04a
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,15 @@ jobs:
cmake -S . -B build `
-DCMAKE_BUILD_TYPE=Debug `
-DopenPMD_USE_MPI=OFF
cmake --build build --config Debug --parallel 2
if(!$?) { Exit $LASTEXITCODE }
ctest --test-dir build -C Debug --output-on-failure
if(!$?) { Exit $LASTEXITCODE }
cmake --build build --config Debug --target install
if(!$?) { Exit $LASTEXITCODE }
# add before install, and fix Python path:
# ctest --test-dir build -C Debug --output-on-failure
Expand Down Expand Up @@ -70,10 +77,14 @@ jobs:
-G "Ninja" ^
-DCMAKE_C_COMPILER=clang-cl ^
-DCMAKE_CXX_COMPILER=clang-cl ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_BUILD_TYPE=RelWithDebInfo ^
-DopenPMD_USE_MPI=OFF
cmake --build build --config Release --parallel 2
cmake --build build --config Debug --target install
# add before install, and fix Python path:
# ctest --test-dir build -C Debug --output-on-failure
cmake --build build --config RelWithDebInfo --parallel 2
if errorlevel 1 exit 1
ctest --test-dir build -C RelWithDebInfo --output-on-failure
if errorlevel 1 exit 1
cmake --build build --config RelWithDebInfo --target install
if errorlevel 1 exit 1

0 comments on commit 1d4e04a

Please sign in to comment.