1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-14 11:58:02 +00:00

test(regression-tests): stop replication regression-tests schedual run (#795)

* regression replication will not run on github schedual
* allow running regression replication manually

Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
adiholden 2023-02-14 14:48:39 +02:00 committed by GitHub
parent 49b1ba5b6d
commit c5e8a627b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,12 @@ on:
schedule:
- cron: '0 0/6 * * *'
workflow_dispatch:
inputs:
run_replication:
description: 'run replication pytests'
type: boolean
required: true
jobs:
build-n-test:
@ -45,7 +51,14 @@ jobs:
pip install -r dragonfly/requirements.txt
export DRAGONFLY_PATH="${GITHUB_WORKSPACE}/build/dragonfly" # used by PyTests
pytest -xvr dragonfly
pytest -xvr dragonfly --ignore=dragonfly/replication_test.py
- name: Run PyTests replication test
if: ${{ inputs.run_replication }}
run: |
cd ${GITHUB_WORKSPACE}/tests
export DRAGONFLY_PATH="${GITHUB_WORKSPACE}/build/dragonfly" # used by PyTests
pytest -xvs dragonfly/replication_test.py --df alsologtostderr --df vmodule=replica=2
- name: Send notification on failure
if: failure() || cancelled()