-
Notifications
You must be signed in to change notification settings - Fork 34
52 lines (47 loc) · 1.29 KB
/
test_e2e.yml
File metadata and controls
52 lines (47 loc) · 1.29 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
run_warp_test:
name: Test running the Oz agent
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Run Oz
uses: ./.
id: oz
with:
oz_channel: preview
prompt: Say hello
warp_api_key: ${{ secrets.WARP_API_KEY }}
- name: Verify output
env:
AGENT_OUTPUT: ${{ steps.oz.outputs.agent_output }}
run: |
if [[ -z "$AGENT_OUTPUT" ]]; then
echo "Warp produced no output"
exit 1
fi
- name: Run Oz with skill from repository
uses: ./.
id: oz-skill
with:
oz_channel: preview
skill: 'test-skill'
warp_api_key: ${{ secrets.WARP_API_KEY }}
- name: Verify skill output
env:
SKILL_OUTPUT: ${{ steps.oz-skill.outputs.agent_output }}
run: |
if [[ -z "$SKILL_OUTPUT" ]]; then
echo "Warp skill produced no output"
exit 1
fi
if [[ "$SKILL_OUTPUT" != *"GitHub Action skill test successful"* ]]; then
echo "Skill output did not contain expected message"
echo "Skill output: $SKILL_OUTPUT"
exit 1
fi