inference-gateway-sdk 0.17.1

Rust SDK for interacting with various language models through the Inference Gateway
Documentation
---
name: CI

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

env:
  CARGO_TERM_COLOR: always

permissions:
  contents: read

jobs:
  build:
    runs-on: ubuntu-24.04
    name: Build
    steps:
      - uses: actions/checkout@v7.0.1

      - name: Lint
        run: cargo fmt --all -- --check

      - name: Static Analysis
        run: cargo clippy --all-targets --all-features -- -D warnings

      - name: Build
        run: cargo build --verbose

      - name: Run tests
        run: cargo test --all-targets --all-features --verbose

      - name: Verify generated types are in sync with openapi.yaml
        run: |
          cargo run -p gen-types --release
          if ! git diff --exit-code src/generated/; then
            echo "::error::src/generated/ is out of sync with openapi.yaml. Run 'task generate-types' and commit the result."
            exit 1
          fi