From 5dd2acf7b6590994fc87f1372f37f3d933ffe6fb Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 23 Apr 2026 07:41:41 +0800 Subject: [PATCH] fix: wf syntax --- .github/workflows/test_common.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test_common.yml b/.github/workflows/test_common.yml index 8409c5f47..abedd1475 100644 --- a/.github/workflows/test_common.yml +++ b/.github/workflows/test_common.yml @@ -39,11 +39,10 @@ env: jobs: tests: name: tests - if: ${{ !inputs.fleet_tests || matrix.shard == 0 }} strategy: fail-fast: false matrix: - shard: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17] + shard: ${{ inputs.fleet_tests && fromJSON('[0]') || fromJSON('[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]') }} # total number of shards =18 means tests will split into 18 thread and run in parallel to increase execution speed # command for sharding : # pytest --shard-id= --num-shards=