summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierrick Hymbert <pierrick.hymbert@gmail.com>2024-03-03 09:35:23 +0100
committerGitHub <noreply@github.com>2024-03-03 10:35:23 +0200
commite6029348e86c3810d4435faee54ba822cb43e2ef (patch)
tree6cf961803e5335112c8c8224bf72f24c46c550c3
parent8ef969afcec1645d2d9c3ab1fc82263bba968989 (diff)
ci : schedule slow server tests only on Release or on demand (#5839)
-rw-r--r--.github/workflows/server.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml
index 8c631250..04e3fc0c 100644
--- a/.github/workflows/server.yml
+++ b/.github/workflows/server.yml
@@ -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