mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 08:46:24 +02:00
34 lines
805 B
YAML
34 lines
805 B
YAML
name: rust tests (prompt and llm gateway)
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./crates
|
|
|
|
steps:
|
|
- name: Setup | Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup | Rust
|
|
run: rustup toolchain install 1.92 --profile minimal
|
|
|
|
- name: Setup | Install wasm toolchain
|
|
run: rustup target add wasm32-wasip1
|
|
|
|
- name: Build wasm module
|
|
run: |
|
|
cargo build --release --target=wasm32-wasip1 -p llm_gateway -p prompt_gateway
|
|
|
|
- name: Run unit tests
|
|
run: cargo test --lib
|
|
|
|
- name: Run trace integration tests
|
|
run: cargo test -p common --features trace-collection traces::tests::trace_integration_test
|