-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 879 Bytes
/
test.yml
File metadata and controls
40 lines (31 loc) · 879 Bytes
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
name: test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- run: rustup update stable
- run: rustup default stable
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: |
echo "DEEPINFRA_KEY=${{ secrets.DEEPINFRA_KEY }}" > test.env
echo "GOOGLE_KEY=${{ secrets.GOOGLE_KEY }}" >> test.env
echo "OPENAI_KEY=${{ secrets.OPENAI_KEY }}" >> test.env
- run: cargo test --all-features
- name: Cleanup before Post Run
run: rm test.env