mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-11 22:51:00 -07:00
feat: allow filtering evals by name in nightly workflow and npm script
This commit is contained in:
11
.github/workflows/evals-nightly.yml
vendored
11
.github/workflows/evals-nightly.yml
vendored
@@ -9,6 +9,10 @@ on:
|
||||
description: 'Run all evaluations (including usually passing)'
|
||||
type: 'boolean'
|
||||
default: true
|
||||
test_filter:
|
||||
description: 'Regex to filter tests (passed to vitest -t)'
|
||||
type: 'string'
|
||||
required: false
|
||||
|
||||
permissions:
|
||||
contents: 'read'
|
||||
@@ -53,7 +57,12 @@ jobs:
|
||||
GEMINI_API_KEY: '${{ secrets.GEMINI_API_KEY }}'
|
||||
GEMINI_MODEL: '${{ matrix.model }}'
|
||||
RUN_EVALS: "${{ github.event.inputs.run_all != 'false' }}"
|
||||
run: 'npm run test:all_evals'
|
||||
run: |
|
||||
if [ -n "${{ inputs.test_filter }}" ]; then
|
||||
npm run test:all_evals -- -t "${{ inputs.test_filter }}"
|
||||
else
|
||||
npm run test:all_evals
|
||||
fi
|
||||
|
||||
- name: 'Upload Logs'
|
||||
if: 'always()'
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
"test:ci": "npm run test:ci --workspaces --if-present && npm run test:scripts",
|
||||
"test:scripts": "vitest run --config ./scripts/tests/vitest.config.ts",
|
||||
"test:always_passing_evals": "vitest run --config evals/vitest.config.ts",
|
||||
"test:eval": "cross-env RUN_EVALS=1 vitest run --config evals/vitest.config.ts",
|
||||
"test:all_evals": "cross-env RUN_EVALS=1 vitest run --config evals/vitest.config.ts",
|
||||
"test:e2e": "cross-env VERBOSE=true KEEP_OUTPUT=true npm run test:integration:sandbox:none",
|
||||
"test:integration:all": "npm run test:integration:sandbox:none && npm run test:integration:sandbox:docker && npm run test:integration:sandbox:podman",
|
||||
|
||||
Reference in New Issue
Block a user