From 41d4e3838261897bf8f46dd90b4f1b592a48c6ad Mon Sep 17 00:00:00 2001 From: aya Date: Thu, 12 Dec 2024 10:00:06 +0200 Subject: [PATCH] try the sharding option --- .github/workflows/test_common.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_common.yml b/.github/workflows/test_common.yml index fc5a36c2..429fc0f0 100644 --- a/.github/workflows/test_common.yml +++ b/.github/workflows/test_common.yml @@ -35,6 +35,9 @@ jobs: tests: name: tests + strategy: + matrix: + shard: [ 1, 2, 3, 4, 5, 6 ] runs-on: ubuntu-latest timeout-minutes: 120 steps: @@ -53,7 +56,7 @@ jobs: - name: Run tests run: | - pytest -n 4 --dist loadgroup --reruns 2 --alluredir=allure-results + pytest --shard-id=${{ matrix.shard }} --num-shards=6 --alluredir=allure-results - name: Get allure history if: always()