@@ -155,6 +155,13 @@ jobs:
155155 -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ;
156156 cmake --build build --config ${{ matrix.build_type }} -j $(nproc) --target llama-server
157157
158+ - name : Slow tests
159+ id : server_integration_tests_slow
160+ if : ${{ (github.event.schedule || github.event.inputs.slow_tests == 'true') && matrix.build_type == 'Release' }}
161+ run : |
162+ cd tools/server/tests
163+ SLOW_TESTS=1 ./tests.sh
164+
158165 - name : Tests
159166 id : server_integration_tests
160167 if : ${{ matrix.sanitizer == '' }}
@@ -171,13 +178,6 @@ jobs:
171178 cd tools/server/tests
172179 LLAMA_SANITIZE=1 ./tests.sh
173180
174- - name : Slow tests
175- id : server_integration_tests_slow
176- if : ${{ (github.event.schedule || github.event.inputs.slow_tests == 'true') && matrix.build_type == 'Release' }}
177- run : |
178- cd tools/server/tests
179- SLOW_TESTS=1 ./tests.sh
180-
181181
182182 server-windows :
183183 runs-on : windows-2022
@@ -220,18 +220,18 @@ jobs:
220220 run : |
221221 cp $env:CURL_PATH/bin/libcurl-x64.dll ./build/bin/Release/libcurl-x64.dll
222222
223- - name : Tests
224- id : server_integration_tests
225- if : ${{ !matrix.disabled_on_pr || !github.event.pull_request }}
226- run : |
227- cd tools/server/tests
228- $env:PYTHONIOENCODING = ":replace"
229- pytest -v -x -m "not slow"
230-
231223 - name : Slow tests
232224 id : server_integration_tests_slow
233225 if : ${{ (github.event.schedule || github.event.inputs.slow_tests == 'true') && matrix.build_type == 'Release' }}
234226 run : |
235227 cd tools/server/tests
236228 $env:SLOW_TESTS = "1"
237229 pytest -v -x
230+
231+ - name : Tests
232+ id : server_integration_tests
233+ if : ${{ !matrix.disabled_on_pr || !github.event.pull_request }}
234+ run : |
235+ cd tools/server/tests
236+ $env:PYTHONIOENCODING = ":replace"
237+ pytest -v -x -m "not slow"
0 commit comments