Skip to content

Commit

Permalink
Modify test command
Browse files Browse the repository at this point in the history
  • Loading branch information
AYAHASSAN287 committed Dec 27, 2024
1 parent 5ac7020 commit e4e92af
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test_common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e4e92af

Please sign in to comment.