using logic in yml file to run test_cursor.py in seperate file

This commit is contained in:
aya 2024-12-25 12:35:24 +02:00
parent 36563f7864
commit 20d44b6154

View File

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