-
Notifications
You must be signed in to change notification settings - Fork 7
34 lines (32 loc) · 968 Bytes
/
test-aiproxy.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
name: "AI proxy tests"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: "AI proxy"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
curl -fsSL https://developer.fermyon.com/downloads/install.sh | bash
sudo mv spin /usr/local/bin/
rustup target add wasm32-wasi
cargo install cargo-component --locked
spin plugin install -y -u https://github.com/fermyon/spin-test/releases/download/canary/spin-test.json
- name: Check formatting
working-directory: examples/aiproxy
run: |
(cd openai-proxy && cargo fmt --check)
(cd tests && cargo fmt --check)
- name: Build project
working-directory: examples/aiproxy
run: |
spin build
- name: Run tests
working-directory: examples/aiproxy
run: |
spin test