Files
xsai/.github/workflows/check.yml
T
藍+85CD 24432f881c refactor(test): use granite4 instead of granite3.3, qwen3 (#248)
* refactor(test): use `granite4:350m-h` instead of `granite3:2b`, `qwen3:0.6b`

* refactor(test): add 1b-h model, update test snapshot

* refactor: simplify embed test

* chore: revert changes

* fix: test

* fix: test

* fix: try another seed

* fix: test
2025-12-29 21:14:45 +08:00

73 lines
1.6 KiB
YAML

name: check
on:
pull_request:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
run_install: false
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: latest
registry-url: https://registry.npmjs.org
- run: pnpm install
- run: pnpm lint
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
run_install: false
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: latest
registry-url: https://registry.npmjs.org
- uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- run: pnpm install
- run: pnpm build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
run_install: false
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: latest
registry-url: https://registry.npmjs.org
- uses: ai-action/setup-ollama@v1
- uses: actions/cache@v4
with:
path: ~/.ollama
key: ${{ runner.os }}-ollama
- run: ollama pull all-minilm
- run: ollama pull granite4:350m-h
- run: ollama pull granite4:1b-h
- run: ollama pull qwen3:0.6b
- run: ollama serve > /dev/null 2>&1 &
- run: pnpm install
- run: pnpm test