Skip to content

llm

llm #146

Workflow file for this run

name: "llm"
on:
pull_request:
paths:
- '.github/workflows/ml-llm.yml'
- 'topic/machine-learning/llm/**'
push:
branches: [ main ]
paths:
- '.github/workflows/ml-llm.yml'
- 'topic/machine-learning/llm/**'
# Allow job to be triggered manually.
workflow_dispatch:
# Run job each night after CrateDB nightly has been published.
schedule:
- cron: '0 3 * * *'
# Cancel in-progress jobs when pushing to the same branch.
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- 'ubuntu-latest'
python-version:
- '3.13'
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
name: OS ${{ matrix.os }}
steps:
- name: Acquire sources
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
activate-environment: 'true'
python-version: ${{ matrix.python-version }}
- name: Validate topic/machine-learning/llm
run: |
# TODO: Generalize invocation into `ngr` test runner.
cd topic/machine-learning/llm
uv pip install -r requirements.txt
uvx xonsh test.xsh