fix: wf syntax

This commit is contained in:
Roman 2026-04-23 07:41:41 +08:00
parent 8c993704f9
commit 5dd2acf7b6
No known key found for this signature in database
GPG Key ID: 583BDF43C238B83E

View File

@ -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=<shard_number> --num-shards=<total_shards>