mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user