-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (36 loc) · 1.29 KB
/
helix.yml
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
name: CI for GenAI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
HELIX_URL: ${{ secrets.HELIX_URL }}
HELIX_API_KEY: ${{ secrets.HELIX_API_KEY }}
jobs:
test-and-comment:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Install helix CLI
run: curl -sL -O https://get.helix.ml/install.sh && bash install.sh --cli -y --helix-version 1.4.0-rc12
- name: Test the helix app
run: helix test -f aispecs/exchangerates.yaml --evaluation-model meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo
- name: PR comment with file
if: always()
uses: thollander/actions-comment-pull-request@v3
with:
file-path: summary_latest.md
test-on-main:
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v4
- name: Install helix CLI
run: curl -sL -O https://get.helix.ml/install.sh && bash install.sh --cli -y --helix-version 1.4.0-rc12
- name: Test the helix app
run: helix test -f aispecs/exchangerates.yaml --evaluation-model meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo