Skip to content

Commit 29f6be3

Browse files
phymberthodlen
authored andcommitted
ci : schedule slow server tests only on Release or on demand (ggml-org#5839)
1 parent af689e3 commit 29f6be3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/server.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Server
33

44
on:
55
workflow_dispatch: # allows manual triggering
6+
inputs:
7+
slow_tests:
8+
description: 'Run slow tests'
9+
required: true
10+
type: boolean
611
push:
712
branches:
813
- master
@@ -11,7 +16,7 @@ on:
1116
types: [opened, synchronize, reopened]
1217
paths: ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples/server/tests/**.*']
1318
schedule:
14-
- cron: '00 0 * * *'
19+
- cron: '0 0 * * *'
1520

1621
jobs:
1722
server:
@@ -80,7 +85,7 @@ jobs:
8085
8186
- name: Slow tests
8287
id: server_integration_tests_slow
83-
if: github.event.schedule != ''
88+
if: ${{ github.event.schedule != '' && matrix.build_type == 'Release' || github.event.inputs.slow_tests == 'true' }}
8489
run: |
8590
cd examples/server/tests
8691
PORT=8888 ./tests.sh --stop --no-skipped --no-capture --tags slow

0 commit comments

Comments
 (0)