Skip to content

chore: make test CI the same as other SDKs #2

chore: make test CI the same as other SDKs

chore: make test CI the same as other SDKs #2

Workflow file for this run

name: test
on:
push:
branches:
- main
paths-ignore:
- README.md
pull_request:
branches:
- main
paths-ignore:
- README.md
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-go@v5
with:
cache: false
go-version: "1.22"
- name: Validate
run: make validate
- name: Install gptscript
run: |
curl https://get.gptscript.ai/releases/default_linux_amd64_v1/gptscript -o ./gptscriptexe
chmod +x ./gptscriptexe
- name: Run Tests
env:
GPTSCRIPT_BIN: ./gptscriptexe
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: make test
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-go@v5
with:
cache: false
go-version: "1.22"
- name: Install gptscript
run: |
curl https://get.gptscript.ai/releases/default_windows_amd64_v1/gptscript.exe -o gptscript.exe
- name: Run Tests
env:
GPTSCRIPT_BIN: .\gptscript.exe
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: make test