mirror of
https://github.com/logos-messaging/logos-messaging-interop-tests.git
synced 2026-05-24 11:19:43 +00:00
chore: add fleet tests workflow
This commit is contained in:
parent
f527a0a331
commit
f67f92255d
34
.github/workflows/fleet_tests.yml
vendored
Normal file
34
.github/workflows/fleet_tests.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: Waku Fleet Tests
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: false
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
node1:
|
||||
required: true
|
||||
description: "Node that usually publishes messages. Used for all tests"
|
||||
type: string
|
||||
default: "wakuorg/nwaku:latest"
|
||||
node2:
|
||||
required: true
|
||||
description: "Node that usually queries for published messages. Used for all tests"
|
||||
type: string
|
||||
default: "wakuorg/nwaku:latest"
|
||||
additional_nodes:
|
||||
required: false
|
||||
description: "Additional optional nodes used in e2e tests, separated by ,"
|
||||
type: string
|
||||
default: "wakuorg/nwaku:latest,wakuorg/nwaku:latest,wakuorg/nwaku:latest"
|
||||
|
||||
jobs:
|
||||
test-common:
|
||||
uses: ./.github/workflows/test_common.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
node1: ${{ inputs.node1 }}
|
||||
node2: ${{ inputs.node2 }}
|
||||
additional_nodes: ${{ inputs.additional_nodes }}
|
||||
fleet_tests: true
|
||||
15
.github/workflows/test_common.yml
vendored
15
.github/workflows/test_common.yml
vendored
@ -22,6 +22,11 @@ on:
|
||||
required: false
|
||||
description: "Workflow caller. Used in reporting"
|
||||
type: string
|
||||
fleet_tests:
|
||||
required: false
|
||||
description: "Run fleet tests only"
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
env:
|
||||
FORCE_COLOR: "1"
|
||||
@ -174,7 +179,15 @@ jobs:
|
||||
export PATH="$HOME/.nimble/bin:$PATH"
|
||||
export PYTHONPATH="$(pwd)/vendor/logos-delivery-python-bindings/waku:$PYTHONPATH"
|
||||
|
||||
if [ "${{ matrix.shard }}" == "16" ]; then
|
||||
if [ "${{ inputs.fleet_tests }}" == "true" ]; then
|
||||
if [ "${{ matrix.shard }}" == "0" ]; then
|
||||
pytest --fleet -m waku_test_fleet \
|
||||
--ignore=vendor/logos-delivery-python-bindings/tests \
|
||||
--alluredir=allure-results-${{ matrix.shard }}
|
||||
else
|
||||
echo "Skipping shard ${{ matrix.shard }}: fleet tests run on shard 0 only"
|
||||
fi
|
||||
elif [ "${{ matrix.shard }}" == "16" ]; then
|
||||
pytest tests/relay/test_rln.py \
|
||||
--ignore=vendor/logos-delivery-python-bindings/tests \
|
||||
--alluredir=allure-results-${{ matrix.shard }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user