Run test_rln.py in single shard

This commit is contained in:
aya 2024-12-25 15:14:46 +02:00
parent 82abd26f45
commit 36f6ff2821

View File

@ -57,9 +57,11 @@ jobs:
- name: Run tests - name: Run tests
run: | run: |
if [ "${{ matrix.shard }}" == 7 ]; then if [ "${{ matrix.shard }}" == 7 ]; then
pytest --reruns 2 -k "test_get_multiple_2000_store_messages" -n 1 --maxfail=1 pytest --reruns 2 -k "test_get_multiple_2000_store_messages" -n 1 --maxfail=1
elif [ "${{ matrix.shard }}" != 7 ]; then elif [ "${{ matrix.shard }}" == 1 ]; then
pytest --dist=loadgroup --ignore=test_get_multiple_2000_store_messages --reruns 2 --shard-id=${{ matrix.shard }} --num-shards=13 --alluredir=allure-results 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 fi