-
Notifications
You must be signed in to change notification settings - Fork 10
39 lines (36 loc) · 991 Bytes
/
run_tests.yaml
File metadata and controls
39 lines (36 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Run Tests
on:
workflow_call:
inputs:
git_ref:
required: true
type: string
secrets:
OPENAI_API_KEY:
required: true
ANTHROPIC_API_KEY:
required: true
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v4
with:
node-version: 21
- name: Install gptscript
run: |
curl https://get.gptscript.ai/releases/default_linux_amd64_v1/gptscript -o ./gptscriptexe
chmod +x ./gptscriptexe
- name: Install dependencies
run: npm install
- name: Run Tests
env:
GPTSCRIPT_BIN: ./gptscriptexe
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
NODE_GPTSCRIPT_SKIP_INSTALL_BINARY: true
run: npm test