Skip to content

Commit 1d4e04a

Browse files
committed
CI: Windows Pre-Install Python Tests
Make sure one can run Python tests without prior install on Windows.
1 parent 022035a commit 1d4e04a

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/windows.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,15 @@ jobs:
2222
cmake -S . -B build `
2323
-DCMAKE_BUILD_TYPE=Debug `
2424
-DopenPMD_USE_MPI=OFF
25+
2526
cmake --build build --config Debug --parallel 2
27+
if(!$?) { Exit $LASTEXITCODE }
28+
29+
ctest --test-dir build -C Debug --output-on-failure
30+
if(!$?) { Exit $LASTEXITCODE }
31+
2632
cmake --build build --config Debug --target install
33+
if(!$?) { Exit $LASTEXITCODE }
2734
2835
# add before install, and fix Python path:
2936
# ctest --test-dir build -C Debug --output-on-failure
@@ -70,10 +77,14 @@ jobs:
7077
-G "Ninja" ^
7178
-DCMAKE_C_COMPILER=clang-cl ^
7279
-DCMAKE_CXX_COMPILER=clang-cl ^
73-
-DCMAKE_BUILD_TYPE=Release ^
80+
-DCMAKE_BUILD_TYPE=RelWithDebInfo ^
7481
-DopenPMD_USE_MPI=OFF
75-
cmake --build build --config Release --parallel 2
76-
cmake --build build --config Debug --target install
7782
78-
# add before install, and fix Python path:
79-
# ctest --test-dir build -C Debug --output-on-failure
83+
cmake --build build --config RelWithDebInfo --parallel 2
84+
if errorlevel 1 exit 1
85+
86+
ctest --test-dir build -C RelWithDebInfo --output-on-failure
87+
if errorlevel 1 exit 1
88+
89+
cmake --build build --config RelWithDebInfo --target install
90+
if errorlevel 1 exit 1

0 commit comments

Comments
 (0)