Skip to content

Commit 1ee057d

Browse files
committed
add ci workflow
Signed-off-by: Rishav Dhar <19497993+rdhar@users.noreply.github.com>
1 parent 25428cc commit 1ee057d

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: CI
3+
4+
on:
5+
pull_request:
6+
paths: [action.yml, .github/workflows/ci.yml]
7+
8+
jobs:
9+
CI:
10+
runs-on: [ubuntu-24.04]
11+
12+
permissions:
13+
contents: read # Required to checkout repository.
14+
models: read # Required for model inference.
15+
16+
steps:
17+
- name: Echo context
18+
env:
19+
GH_JSON: ${{ toJson(github) }}
20+
run: echo "$GH_JSON"
21+
22+
- name: Checkout repository
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+
with:
25+
persist-credentials: false
26+
27+
- name: Inference request
28+
id: prompt
29+
uses: ./
30+
with:
31+
messages: '[{"role": "user", "content": "Hello!"}]'
32+
model: "openai/o4-mini"
33+
34+
- name: Echo outputs
35+
continue-on-error: true
36+
run: |
37+
echo "response: ${{ steps.prompt.outputs.response }}"
38+
echo "response-raw: ${{ steps.prompt.outputs.response-raw }}"

0 commit comments

Comments
 (0)