Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,33 @@ jobs:
- run: pnpm install --frozen-lockfile
- run: pnpm run test --shard=${{ matrix.shard }}/5

# minidb's cluster/stress suite is process-heavy and flakes under the
# shared shard matrix; run it in its own job outside the default projects.
test-minidb:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v6

- uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: pnpm

- run: pnpm install --frozen-lockfile
- run: pnpm --filter @pymodel/minidb test

test-complete:
name: test
if: always()
needs: test
needs: [test, test-minidb]
runs-on: ubuntu-latest

steps:
- name: Verify all test shards passed
if: needs.test.result != 'success'
if: needs.test.result != 'success' || needs.test-minidb.result != 'success'
run: exit 1

# pi-tui's suite runs on node:test (not vitest), so the root `pnpm run test`
Expand Down
9 changes: 8 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ import { vscodeProjects } from './apps/vscode/vitest.projects';

export default defineConfig({
test: {
projects: ['packages/*', 'apps/pythinker-code', 'apps/desktop', 'apps/pythinker-web', ...vscodeProjects],
projects: [
'packages/*',
'!packages/minidb',
'apps/pythinker-code',
'apps/desktop',
'apps/pythinker-web',
...vscodeProjects,
],
coverage: {
provider: 'v8',
include: ['packages/*/src/**/*.ts', 'apps/*/src/**/*.ts'],
Expand Down
Loading