-
Notifications
You must be signed in to change notification settings - Fork 36
68 lines (64 loc) · 1.54 KB
/
tembo_ai.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Tembo AI Gateway Workflow
permissions:
pull-requests: write
deployments: write
id-token: write
contents: read
defaults:
run:
shell: bash
working-directory: ./inference-gateway/
on:
pull_request:
branches:
- main
paths:
- '.github/workflows/tembo_ai.yaml'
- 'inference-gateway/**'
push:
branches:
- main
paths:
- '.github/workflows/tembo_ai.yaml'
- 'inference-gateway/**'
jobs:
tests:
name: Run tests
runs-on:
- self-hosted
- dind
- small
- amd64
env:
DATABASE_URL: "postgresql://postgres:postgres@0.0.0.0:5432/postgres"
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: |
set -xe
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "cp-test"
- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: install dependencies
run: cargo install sqlx-cli --version 0.7.4
- name: Start Postgres
run: |
make run-postgres
make run-migrations
- name: Check Format and Migrations
run: make check
- name: unit-test
run: make unit-test
- name: integration-test
run: make integration-test
- name: Debugging information
if: always()
run: |
docker compose logs postgres
docker compose logs mock-server