Fix logic to run test_cursor.py in seperate shard

This commit is contained in:
aya 2024-12-25 12:36:52 +02:00
parent 20d44b6154
commit f1499c55f6

View File

@ -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