File tree Expand file tree Collapse file tree 3 files changed +27
-6
lines changed Expand file tree Collapse file tree 3 files changed +27
-6
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,31 @@ Set-PSDebug -Trace 1
66$ErrorActionPreference = ' Stop'
77$PSNativeCommandUseErrorActionPreference = $true
88
9- # Run pytest with coverage
10- # pytest -n auto --cov=./ --cov-report=xml
11- pytest - v -- full- trace - c pytest- windows.ini
9+ # Run pytest
10+ pytest - v - c pytest- windows.ini
1211if ($LASTEXITCODE -ne 0 ) {
1312 Write-Host " Pytest invocation was unsuccessful. Exit code: $LASTEXITCODE ."
1413 exit $LASTEXITCODE
1514}
15+
16+ # Run native unit tests (via ctest)
17+ New-Item - Path " test-build" - ItemType Directory
18+ cd " test-build"
19+
20+ cmake .. -- preset windows - B . - DCMAKE_BUILD_TESTS= ON
21+ if ($LASTEXITCODE -ne 0 ) {
22+ Write-Host " CMake configuration was unsuccessful. Exit code: $LASTEXITCODE ."
23+ exit $LASTEXITCODE
24+ }
25+
26+ cmake -- build . - j8 -- config Release
27+ if ($LASTEXITCODE -ne 0 ) {
28+ Write-Host " CMake build was unsuccessful. Exit code: $LASTEXITCODE ."
29+ exit $LASTEXITCODE
30+ }
31+
32+ ctest - j8
33+ if ($LASTEXITCODE -ne 0 ) {
34+ Write-Host " CTest run was unsuccessful. Exit code: $LASTEXITCODE ."
35+ exit $LASTEXITCODE
36+ }
Original file line number Diff line number Diff line change 6969 \$ErrorActionPreference = 'Stop'
7070 \$PSNativeCommandUseErrorActionPreference = \$true
7171
72- .ci/scripts/setup-windows.ps1
72+ .ci/scripts/setup-windows.ps1
7373
74- powershell .ci/scripts/unittest-windows.ps1 -editable "${{ inputs.editable }}"
74+ .ci/scripts/unittest-windows.ps1 -editable "${{ inputs.editable }}"
7575 }"
Original file line number Diff line number Diff line change @@ -1032,5 +1032,5 @@ jobs:
10321032
10331033 .ci/scripts/setup-windows.ps1
10341034
1035- powershell .ci/scripts/test_model.ps1 -modelName ${{ matrix.model }} -backend ${{ matrix.backend }}
1035+ .ci/scripts/test_model.ps1 -modelName ${{ matrix.model }} -backend ${{ matrix.backend }}
10361036 }"
You can’t perform that action at this time.
0 commit comments