]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ci : schedule slow server tests only on Release or on demand (#5839)
authorPierrick Hymbert <redacted>
Sun, 3 Mar 2024 08:35:23 +0000 (09:35 +0100)
committerGitHub <redacted>
Sun, 3 Mar 2024 08:35:23 +0000 (10:35 +0200)
.github/workflows/server.yml

index 8c63125087d625fc85cb055cbab06101e2322da5..04e3fc0c17cf9ef0f922488bbe56726315a63991 100644 (file)
@@ -3,6 +3,11 @@ name: Server
 
 on:
   workflow_dispatch: # allows manual triggering
+    inputs:
+      slow_tests:
+        description: 'Run slow tests'
+        required: true
+        type: boolean
   push:
     branches:
       - master
@@ -11,7 +16,7 @@ on:
     types: [opened, synchronize, reopened]
     paths: ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples/server/tests/**.*']
   schedule:
-    -  cron: '00 0 * * *'
+    -  cron: '0 0 * * *'
 
 jobs:
   server:
@@ -80,7 +85,7 @@ jobs:
 
       - name: Slow tests
         id: server_integration_tests_slow
-        if: github.event.schedule != ''
+        if: ${{ github.event.schedule != '' && matrix.build_type == 'Release' || github.event.inputs.slow_tests == 'true' }}
         run: |
           cd examples/server/tests
           PORT=8888 ./tests.sh --stop --no-skipped --no-capture --tags slow