15
15
push :
16
16
branches :
17
17
- master
18
- paths : ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples /server/**.*']
18
+ paths : ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'tools /server/**.*']
19
19
pull_request :
20
20
types : [opened, synchronize, reopened]
21
- paths : ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples /server/**.*']
21
+ paths : ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'tools /server/**.*']
22
22
23
23
env :
24
24
LLAMA_LOG_COLORS : 1
74
74
- name : Tests dependencies
75
75
id : test_dependencies
76
76
run : |
77
- pip install -r examples /server/tests/requirements.txt
77
+ pip install -r tools /server/tests/requirements.txt
78
78
79
79
# Setup nodejs (to be used for verifying bundled index.html)
80
80
- uses : actions/setup-node@v4
@@ -84,14 +84,14 @@ jobs:
84
84
- name : WebUI - Install dependencies
85
85
id : webui_lint
86
86
run : |
87
- cd examples /server/webui
87
+ cd tools /server/webui
88
88
npm ci
89
89
90
90
- name : WebUI - Check code format
91
91
id : webui_format
92
92
run : |
93
93
git config --global --add safe.directory $(realpath .)
94
- cd examples /server/webui
94
+ cd tools /server/webui
95
95
git status
96
96
97
97
npm run format
@@ -108,7 +108,7 @@ jobs:
108
108
id : verify_server_index_html
109
109
run : |
110
110
git config --global --add safe.directory $(realpath .)
111
- cd examples /server/webui
111
+ cd tools /server/webui
112
112
git status
113
113
114
114
npm run build
@@ -161,21 +161,21 @@ jobs:
161
161
env :
162
162
GITHUB_ACTIONS : " true"
163
163
run : |
164
- cd examples /server/tests
164
+ cd tools /server/tests
165
165
./tests.sh
166
166
167
167
- name : Tests (sanitizers)
168
168
id : server_integration_tests_sanitizers
169
169
if : ${{ matrix.sanitizer != '' }}
170
170
run : |
171
- cd examples /server/tests
171
+ cd tools /server/tests
172
172
LLAMA_SANITIZE=1 ./tests.sh
173
173
174
174
- name : Slow tests
175
175
id : server_integration_tests_slow
176
176
if : ${{ (github.event.schedule || github.event.inputs.slow_tests == 'true') && matrix.build_type == 'Release' }}
177
177
run : |
178
- cd examples /server/tests
178
+ cd tools /server/tests
179
179
SLOW_TESTS=1 ./tests.sh
180
180
181
181
@@ -211,7 +211,7 @@ jobs:
211
211
- name : Tests dependencies
212
212
id : test_dependencies
213
213
run : |
214
- pip install -r examples /server/tests/requirements.txt
214
+ pip install -r tools /server/tests/requirements.txt
215
215
216
216
- name : Copy Libcurl
217
217
id : prepare_libcurl
@@ -224,14 +224,14 @@ jobs:
224
224
id : server_integration_tests
225
225
if : ${{ !matrix.disabled_on_pr || !github.event.pull_request }}
226
226
run : |
227
- cd examples /server/tests
227
+ cd tools /server/tests
228
228
$env:PYTHONIOENCODING = ":replace"
229
229
pytest -v -x -m "not slow"
230
230
231
231
- name : Slow tests
232
232
id : server_integration_tests_slow
233
233
if : ${{ (github.event.schedule || github.event.inputs.slow_tests == 'true') && matrix.build_type == 'Release' }}
234
234
run : |
235
- cd examples /server/tests
235
+ cd tools /server/tests
236
236
$env:SLOW_TESTS = "1"
237
237
pytest -v -x
0 commit comments