Skip to content

Make initial version of splitllm #88

Make initial version of splitllm

Make initial version of splitllm #88

Workflow file for this run

name: Rust
on:
push:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
DATABASE_URL: postgres://postgres:password@localhost:5432/OneLLM
POSTGRES: postgres://postgres:password@localhost:5432/OneLLM
CI: true
RUST_BACKTRACE: 1
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: password
POSTGRES_DB: OneLLM
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Wait for PostgreSQL
run: |
for i in {1..10}; do
pg_isready -h postgres -p 5432 && break
echo "Waiting for PostgreSQL..."
sleep 3
done
- name: Run tests from testing.rs
run: cargo test --bin oneAI-backend
- name: Cargo check
run: cargo check --bin oneAI-backend