Skip to content

Support Anthropic (#151) #202

Support Anthropic (#151)

Support Anthropic (#151) #202

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest ]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Test Code
run: |
go build -v ./...
go test -v -race ./...
ai:
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Test Code
env:
CHATGPT_API_KEY: ${{ secrets.CHATGPT_API_KEY }}
CHATGPT_PROXY: ${{ secrets.CHATGPT_PROXY }}
CHATGPT_ENDPOINT: ${{ secrets.CHATGPT_ENDPOINT }}
CHATGPT_MODEL: ${{ secrets.CHATGPT_MODEL }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
GEMINI_PROXY: ${{ secrets.GEMINI_PROXY }}
GEMINI_ENDPOINT: ${{ secrets.GEMINI_ENDPOINT }}
GEMINI_MODEL: ${{ secrets.GEMINI_MODEL }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
ANTHROPIC_PROXY: ${{ secrets.ANTHROPIC_PROXY }}
ANTHROPIC_ENDPOINT: ${{ secrets.ANTHROPIC_ENDPOINT }}
ANTHROPIC_MODEL: ${{ secrets.ANTHROPIC_MODEL }}
run: go test -v