Skip to content

Show model and cost in USD as footer for agent prompt and banana image responses #428

Show model and cost in USD as footer for agent prompt and banana image responses

Show model and cost in USD as footer for agent prompt and banana image responses #428

Workflow file for this run

name: Test
on:
push:
branches:
# master runs its own tests as part of the release
- "*"
pull_request:
jobs:
test:
runs-on: ubuntu-latest
container: clojure:lein-bullseye
services:
postgres:
image: postgres
env:
POSTGRES_USER: yetibot
POSTGRES_PASSWORD: yetibot
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: checkout
uses: actions/checkout@v6
- name: maven cache
uses: actions/cache@v5
with:
path: /root/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj') }}
restore-keys: |
${{ runner.os }}-maven-
- name: install git
run: apt-get update && apt-get -y install git
# runs the tests and generates code coverage metrics
- name: test
env:
YETIBOT_DB_URL: postgresql://yetibot:yetibot@postgres:5432/yetibot
CLOVERAGE_VERSION: 1.1.2
run: lein with-profile +test cloverage --codecov --runner midje