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