ci(qmd): keep model execution out of ci

This commit is contained in:
Julian lechner committed 2026-10-08 14:59:32 +02:00
1 parent 2fe612c8e1
commit 73cb30c32b
2 files changed
+4 -13

No files matched your search

+3 -12
View File
@@ -173,27 +173,18 @@ jobs:
run: timeout 900 python scripts/tests/test-client-smoke.py -v run: timeout 900 python scripts/tests/test-client-smoke.py -v
qmd: qmd:
name: QMD local search integration name: QMD unit tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 45 timeout-minutes: 10
needs: [python] needs: [python]
steps: steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v22.16.0 - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v22.16.0
with: with:
node-version: '24' node-version: '24'
- name: Install QMD # CI runs model-free tests only; real-model integration requires a suitable local machine.
run: npm install --global @tobilu/qmd@2.8.3
- name: Run QMD unit tests - name: Run QMD unit tests
run: node --test scripts/tests/test-qmd-lib.mjs scripts/tests/test-qmd-daemon.mjs scripts/tests/test-qmd-search.mjs scripts/tests/test-qmd-warm.mjs scripts/tests/test-qmd-benchmark.mjs run: node --test scripts/tests/test-qmd-lib.mjs scripts/tests/test-qmd-daemon.mjs scripts/tests/test-qmd-search.mjs scripts/tests/test-qmd-warm.mjs scripts/tests/test-qmd-benchmark.mjs
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: .cache/qmd-models
key: qmd-models-${{ runner.os }}-2.8.3-qwen3
- name: Run QMD integration test with real models
env:
QMD_TEST_CACHE: ${{ github.workspace }}/.cache/qmd-models
run: node --test scripts/tests/test-qmd-integration.mjs
security: security:
name: CI configuration security checks name: CI configuration security checks
+1 -1
View File
@@ -1,4 +1,4 @@
// Real QMD, real models; run only in the qmd CI job or manually. // Real QMD, real models; run manually on a machine capable of downloading and running the models.
import { test } from 'node:test'; import { test } from 'node:test';
import assert from 'node:assert/strict'; import assert from 'node:assert/strict';
import { execFileSync } from 'node:child_process'; import { execFileSync } from 'node:child_process';