From e4e92afb3b7027500edf708b413bd0d2c5e96d79 Mon Sep 17 00:00:00 2001 From: aya Date: Fri, 27 Dec 2024 13:52:52 +0200 Subject: [PATCH] Modify test command --- .github/workflows/test_common.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_common.yml b/.github/workflows/test_common.yml index 02ce6caa..e6c31e31 100644 --- a/.github/workflows/test_common.yml +++ b/.github/workflows/test_common.yml @@ -56,8 +56,12 @@ jobs: - run: pip install -r requirements.txt - name: Run tests - run: | - pytest --ignore=tests/relay/test_rln.py --ignore=tests/store/test_cursor_many_msgs.py --reruns 2 --shard-id=${{ matrix.shard }} --num-shards=16 --alluredir=allure-results-${{ matrix.shard }} + run: if [ "${{ matrix.shard }}" == 16 ]; then + pytest tests/relay/test_rln.py --alluredir=allure-results-${{ matrix.shard }} + elif [ "${{ matrix.shard }}" == 17 ]; then + pytest tests/store/test_cursor_many_msgs.py --alluredir=allure-results-${{ matrix.shard }} + elif [ "${{ matrix.shard }}" != 17 ]; then + pytest --ignore=tests/relay/test_rln.py --ignore=tests/store/test_cursor_many_msgs.py --reruns 2 --shard-id=${{ matrix.shard }} --num-shards=16 --alluredir=allure-results-${{ matrix.shard }} - name: Upload allure results if: always()