From f1499c55f61b8506a2d3c2c7d12aca0fa57e90d1 Mon Sep 17 00:00:00 2001 From: aya Date: Wed, 25 Dec 2024 12:36:52 +0200 Subject: [PATCH] Fix logic to run test_cursor.py in seperate shard --- .github/workflows/test_common.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_common.yml b/.github/workflows/test_common.yml index 8d68899b..fbb4c7d6 100644 --- a/.github/workflows/test_common.yml +++ b/.github/workflows/test_common.yml @@ -56,9 +56,9 @@ jobs: - name: Run tests run: | - if [ "${{ matrix.shard }}" == "7" ]; then + if [ "${{ matrix.shard }}" == 7 ]; then pytest test_cursor.py - elif [ "${{ matrix.shard }}" == "shard2" ]; then + elif [ "${{ matrix.shard }}" != 7 ]; then pytest --dist=loadgroup --reruns 2 --shard-id=${{ matrix.shard }} --num-shards=11 --alluredir=allure-results fi