Skip to content

feat: Add workflow_dispatch event with script parameters and update trace output to GITHUB_STEP_SUMMARY #4630

feat: Add workflow_dispatch event with script parameters and update trace output to GITHUB_STEP_SUMMARY

feat: Add workflow_dispatch event with script parameters and update trace output to GITHUB_STEP_SUMMARY #4630

Workflow file for this run

name: ollama smoke tests
permissions:
contents: read
on:
workflow_dispatch:
release:
types:
- published
pull_request:
paths:
- yarn.lock
- ".github/workflows/ollama.yml"
- "packages/core/**/*"
- "packages/cli/**/*"
- "samples/samples/**/*"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-ollama
cancel-in-progress: true
env:
GENAISCRIPT_DEFAULT_MODEL_REASONING: ${{ vars.GENAISCRIPT_DEFAULT_REASONING_MODEL }}
GENAISCRIPT_DEFAULT_MODEL_REASONING_SMALL: ${{ vars.GENAISCRIPT_DEFAULT_REASONING_SMALL_MODEL }}
GENAISCRIPT_DEFAULT_MODEL_LARGE: ${{ vars.GENAISCRIPT_DEFAULT_MODEL }}
GENAISCRIPT_DEFAULT_MODEL_SMALL: ${{ vars.GENAISCRIPT_DEFAULT_SMALL_MODEL }}
GENAISCRIPT_DEFAULT_MODEL_VISION: ${{ vars.GENAISCRIPT_DEFAULT_VISION_MODEL }}
DEBUG: "genaiscript:fetch:proxy*"
jobs:
tests:
runs-on: ubuntu-latest
env:
OLLAMA_HOST: "http://localhost:11434"
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-depth: 0
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: pnpm
- uses: dev-proxy-tools/actions/setup@v1
with:
auto-record: true
report-job-summary: $GITHUB_STEP_SUMMARY
- run: pnpm install --frozen-lockfile
- run: pnpm build:cli
- run: pnpm install:ffmpeg
- run: pnpm ollama:start
- run: pnpm whisper:start
- run: pnpm test:ci --model ollama:llama3.2:1b --out ./temp/summarize-ollama-phi3
- name: run convert-ollama-phi3
run: pnpm cli convert summarize --model ollama:llama3.2:1b "samples/sample/src/rag/*.md" --cache-name sum
- name: run transcribe
run: pnpm run:script video-transcript --model ollama:llama3.2:1b --out ./temp/summarize-ollama-phi3 --out-output $GITHUB_STEP_SUMMARY