Skip to content

fix: cap max_tokens in E2E chat helpers to prevent test timeouts (#893) #1090

fix: cap max_tokens in E2E chat helpers to prevent test timeouts (#893)

fix: cap max_tokens in E2E chat helpers to prevent test timeouts (#893) #1090

Workflow file for this run

name: Validate model-cli
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches:
- 'main'
- 'v[0-9]*'
tags:
- 'v*'
paths:
- 'cmd/cli/**'
- '.github/workflows/cli-validate.yml'
pull_request:
paths:
- 'cmd/cli/**'
- '.github/workflows/cli-validate.yml'
jobs:
prepare:
runs-on: ubuntu-24.04
outputs:
matrix: ${{ steps.generate.outputs.matrix }}
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
-
name: Generate matrix
id: generate
uses: docker/bake-action/subaction/matrix@a66e1c87e2eca0503c343edf1d208c716d54b8a8
with:
files: ./cmd/cli/docker-bake.hcl
target: validate
validate:
runs-on: ubuntu-24.04
needs:
- prepare
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(needs.prepare.outputs.matrix) }}
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4
with:
buildkitd-flags: --debug
-
name: Validate
uses: docker/bake-action@a66e1c87e2eca0503c343edf1d208c716d54b8a8 # v7
with:
files: ./cmd/cli/docker-bake.hcl
targets: ${{ matrix.target }}