feat(regression test) : add regression test that run in optimiztion mode (#900)

* feat(regression test) : add run in opimiztion mode

Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
adiholden 2023-03-02 16:33:52 +02:00 committed by GitHub
parent 7ae316a85d
commit 4a5d2f2a9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,17 +1,11 @@
name: Regression Tests
env:
BUILD_TYPE: Debug
on:
schedule:
- cron: '0 0/3 * * *'
workflow_dispatch:
inputs:
run_replication:
description: 'run replication pytests'
type: boolean
required: true
jobs:
@ -21,6 +15,7 @@ jobs:
matrix:
# Test of these containers
container: ["ubuntu-dev:20"]
build-type: [Debug, Release]
timeout-minutes: 30
container:
@ -36,7 +31,7 @@ jobs:
- name: Configure & Build
run: |
apt update && apt install -y pip
cmake -B ${GITHUB_WORKSPACE}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -GNinja \
cmake -B ${GITHUB_WORKSPACE}/build -DCMAKE_BUILD_TYPE=${{matrix.build-type}} -GNinja \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
cd ${GITHUB_WORKSPACE}/build && ninja dragonfly
@ -55,7 +50,6 @@ jobs:
pytest -sxvr dragonfly --ignore=dragonfly/replication_test.py
- name: Run PyTests replication test
timeout-minutes: 15
#if: ${{ inputs.run_replication }}
run: |
cd ${GITHUB_WORKSPACE}/tests
export DRAGONFLY_PATH="${GITHUB_WORKSPACE}/build/dragonfly" # used by PyTests