-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (37 loc) · 1000 Bytes
/
run_tests.yaml
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
39
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-python@v5
with:
python-version: "3.12"
- name: Install gptscript
run: |
curl https://get.gptscript.ai/releases/default_linux_amd64_v1/gptscript -o gptscriptexe
chmod +x ./gptscriptexe
./gptscriptexe --version
- name: Install deps
run: |
pip install -r requirements.txt
- name: Run Tests
env:
GPTSCRIPT_BIN: ./gptscriptexe
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
run: tox