Skip to content

Behave tests

Behave tests #523

Workflow file for this run

name: Behave tests
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: behave
runs-on: ubuntu-22.04
strategy:
matrix:
command:
- "TEST_ARGS='-i pgconsul_util.feature' make check"
- "TEST_ARGS='-i initialization.feature' make check"
- "TEST_ARGS='-i priority.feature' make check"
- "TEST_ARGS='-i async.feature' make check"
- "TEST_ARGS='-i kill_primary.feature' make check"
- "TEST_ARGS='-i kill_replica.feature' make check"
- "TEST_ARGS='-i kill_non_ha_replica.feature' make check"
- "TEST_ARGS='-i slot.feature' make check"
- "TEST_ARGS='-i coordinator.feature' make check"
- "TEST_ARGS='-i coordinator_fail.feature' make check"
- "TEST_ARGS='-i single_node.feature' make check"
- "TEST_ARGS='-i op_track.feature' make check"
- "TEST_ARGS='-i maintenance.feature' make check"
- "TEST_ARGS='-i plugins.feature' make check"
- "TEST_ARGS='-i switchover.feature' make check"
- "TEST_ARGS='-i failover_timeout.feature' make check"
- "TEST_ARGS='-i cascade.feature' make check"
- "TEST_ARGS='-i disable_sync.feature' make check"
- "TEST_ARGS='-i autofailover.feature' make check"
- "TEST_ARGS='-i consecutive_switch.feature' make check"
- "TEST_ARGS='-i targeted_switchover.feature' make check"
- "TEST_ARGS='-i dead_primary_switchover.feature' make check"
- "TEST_ARGS='-i start.feature' make check"
- "TEST_ARGS='-i reset_sync.feature' make check"
- "TEST_ARGS='-i primary_switch.feature' make check"
- "TEST_ARGS='-i failed_promote.feature' make check"
- "TEST_ARGS='-i archive.feature' make check"
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install tox
run: pip install tox
- name: Test
run: ${{ matrix.command }}
- uses: actions/upload-artifact@v4
if: failure()
with:
name: logs
path: logs