From 36f6ff282138b536362593f42adfde22c72ec785 Mon Sep 17 00:00:00 2001 From: aya Date: Wed, 25 Dec 2024 15:14:46 +0200 Subject: [PATCH] Run test_rln.py in single shard --- .github/workflows/test_common.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_common.yml b/.github/workflows/test_common.yml index 7cc36ef3..531bdbde 100644 --- a/.github/workflows/test_common.yml +++ b/.github/workflows/test_common.yml @@ -57,9 +57,11 @@ jobs: - name: Run tests run: | if [ "${{ matrix.shard }}" == 7 ]; then - pytest --reruns 2 -k "test_get_multiple_2000_store_messages" -n 1 --maxfail=1 - elif [ "${{ matrix.shard }}" != 7 ]; then - pytest --dist=loadgroup --ignore=test_get_multiple_2000_store_messages --reruns 2 --shard-id=${{ matrix.shard }} --num-shards=13 --alluredir=allure-results + pytest --reruns 2 -k "test_get_multiple_2000_store_messages" -n 1 --maxfail=1 + elif [ "${{ matrix.shard }}" == 1 ]; then + pytest --dist=loadgroup tests/relay/test_rln.py -n 1 + elif [ "${{ matrix.shard }}" != 7 && "${{ matrix.shard }}" != 1]; then + pytest --dist=loadgroup --ignore=test_get_multiple_2000_store_messages --ignore=tests/relay/test_rln.py --reruns 2 --shard-id=${{ matrix.shard }} --num-shards=13 --alluredir=allure-results fi