Skip to content

Commit a4b48e2

Browse files
committed
CI-windows.yml: run Python tests with debug build
1 parent 61a6b34 commit a4b48e2

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/CI-windows.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ jobs:
9292
persist-credentials: false
9393

9494
- name: Set up Python
95-
if: matrix.config == 'release'
9695
uses: actions/setup-python@v5
9796
with:
9897
python-version: '3.14'
@@ -133,7 +132,6 @@ jobs:
133132
CL: /MP
134133

135134
- name: Install missing Python packages
136-
if: matrix.config == 'release'
137135
run: |
138136
python -m pip install pip --upgrade || exit /b !errorlevel!
139137
python -m pip install pytest || exit /b !errorlevel!
@@ -168,7 +166,15 @@ jobs:
168166
if: matrix.config == 'release'
169167
run: .\bin\testrunner.exe || exit /b !errorlevel!
170168

171-
- name: Prepare test/cli
169+
- name: Prepare test/cli (debug)
170+
if: matrix.config == 'debug'
171+
run: |
172+
:: since FILESDIR is not set copy the binary to the root so the addons are found
173+
:: copy .\build\bin\Release\cppcheck.exe .\cppcheck.exe || exit /b !errorlevel!
174+
copy .\bin\debug\cppcheck.exe .\cppcheck.exe || exit /b !errorlevel!
175+
copy .\bin\debug\cppcheck-core.dll .\cppcheck-core.dll || exit /b !errorlevel!
176+
177+
- name: Prepare test/cli (release)
172178
if: matrix.config == 'release'
173179
run: |
174180
:: since FILESDIR is not set copy the binary to the root so the addons are found
@@ -177,20 +183,18 @@ jobs:
177183
copy .\bin\cppcheck-core.dll .\cppcheck-core.dll || exit /b !errorlevel!
178184
179185
- name: Run test/cli
180-
if: matrix.config == 'release'
181186
run: |
182187
python -m pytest -Werror --strict-markers -vv -n auto test/cli || exit /b !errorlevel!
183188
184189
- name: Run test/cli (-j2)
185-
if: matrix.config == 'release'
186190
run: |
187191
python -m pytest -Werror --strict-markers -vv -n auto test/cli || exit /b !errorlevel!
188192
env:
189193
TEST_CPPCHECK_INJECT_J: 2
190194

191195
# TODO: install clang
192196
- name: Run test/cli (--clang)
193-
if: false # matrix.config == 'release'
197+
if: false
194198
run: |
195199
python -m pytest -Werror --strict-markers -vv -n auto test/cli || exit /b !errorlevel!
196200
env:
@@ -215,7 +219,6 @@ jobs:
215219
del test-sehwrapper.exe || exit /b !errorlevel!
216220
217221
- name: Test addons
218-
if: matrix.config == 'release'
219222
run: |
220223
echo on
221224
.\cppcheck --addon=threadsafety addons\test\threadsafety || exit /b !errorlevel!

0 commit comments

Comments
 (0)