Skip to content

Commit

Permalink
use provider in test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 21, 2024
1 parent 7c5d691 commit 4e890ff
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 25 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/anthropic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ jobs:
- name: compile
run: yarn compile
- name: poem
run: yarn run:script poem --model anthropic:claude-3-5-sonnet-20240620 --out-trace $GITHUB_STEP_SUMMARY
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
- name: cache
run: yarn run:script summarize-cached --model anthropic:claude-3-5-sonnet-20240620 --small-model anthropic:claude-3-5-sonnet-20240620
run: yarn run:script poem -p anthropic --out-trace $GITHUB_STEP_SUMMARY
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/google.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ jobs:
- name: compile
run: yarn compile
- name: poem
run: yarn run:script poem --model google:gemini-1.5-flash --out-trace $GITHUB_STEP_SUMMARY
run: yarn run:script poem -p google --out-trace $GITHUB_STEP_SUMMARY
env:
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
37 changes: 37 additions & 0 deletions .github/workflows/huggingface.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: anthropic tests
on:
workflow_dispatch:
release:
types:
- published
pull_request:
paths:
- yarn.lock
- ".github/workflows/huggingface.yml"
- "packages/core/**/*"
- "packages/cli/**/*"
- "packages/samples/**/*"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-huggingface
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: yarn
- run: yarn install --frozen-lockfile
- name: typecheck
run: yarn typecheck
- name: compile
run: yarn compile
- name: poem
run: yarn run:script poem -p huggingface --out-trace $GITHUB_STEP_SUMMARY
env:
HUGGINGFACE_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
22 changes: 3 additions & 19 deletions .github/workflows/openai.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
name: openai smoke tests
on:
workflow_dispatch:
# pull_request:
# paths:
# - yarn.lock
# - ".github/workflows/github-models.yml"
# - "packages/core/**/*"
# - "packages/cli/**/*"
# - "packages/samples/**/*"
# push:
# branches:
# - main
# paths:
# - yarn.lock
# - ".github/workflows/github-models.yml"
# - "packages/core/**/*"
# - "packages/cli/**/*"
# - "packages/samples/**/*"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-github-models
group: ${{ github.workflow }}-${{ github.ref }}-openai
cancel-in-progress: true
jobs:
tests:
Expand All @@ -37,8 +21,8 @@ jobs:
run: yarn typecheck
- name: compile
run: yarn compile
- name: run summarize openai:gpt-3.5-turbo
run: yarn test:summarize --model openai:gpt-3.5-turbo --out ./temp
- name: run summarize
run: yarn test:summarize -p openai --out-trace $GITHUB_STEP_SUMMARY
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_TYPE: ${{ secrets.OPENAI_API_TYPE }}
Expand Down

0 comments on commit 4e890ff

Please sign in to comment.