fix(ci): parallelize tests into 4 shards to avoid timeout

The full test suite takes ~100 minutes sequentially. Split into 4
parallel shards using Vitest's --shard flag so each completes in
~25 minutes. Removed coverage from CI (was causing overhead without
being reported anywhere). 30-minute timeout per shard as safety net.
This commit is contained in:
SnapOtter
2026-05-16 18:41:15 +08:00
parent 6b79184a93
commit d886cc2486
+7 -3
View File
@@ -43,9 +43,13 @@ jobs:
- run: pnpm typecheck
test:
name: Test
name: Test (${{ matrix.shard }}/4)
runs-on: ubuntu-latest
timeout-minutes: 20
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
@@ -61,7 +65,7 @@ jobs:
fi
- uses: ./.github/actions/setup
- run: pnpm test:ci
- run: pnpm vitest run --reporter=verbose --shard=${{ matrix.shard }}/4
pip-audit:
name: Python Dependency Audit