feat(v5.6.0): LLM retry with backoff, GitHub rate limiter, doctor com… #185
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| # ── Rust: fmt + clippy ──────────────────────────────────────────────────── | |
| lint: | |
| name: Rust Lint (fmt + clippy) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Cache cargo | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| crates/contribai-rs/target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Check formatting | |
| run: cargo fmt --check | |
| - name: Clippy (deny warnings) | |
| run: cargo clippy -- -D warnings | |
| # ── Rust: tests ─────────────────────────────────────────────────────────── | |
| test: | |
| name: Rust Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache cargo | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| crates/contribai-rs/target | |
| key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Run tests | |
| run: cargo test --verbose | |
| - name: Build release binary | |
| run: cargo build --release | |
| # ── Rust: security audit ────────────────────────────────────────────────── | |
| security: | |
| name: Rust Security Audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install cargo-audit | |
| run: cargo install cargo-audit --locked | |
| - name: Audit dependencies | |
| run: cargo audit | |
| # ── Python legacy (python/ dir) ─────────────────────────────────────────── | |
| python-legacy: | |
| name: Python Legacy Tests (v4.1.0) | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' && contains(github.event.head_commit.message, '[python]') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| working-directory: python | |
| run: pip install -e ".[dev]" | |
| - name: Run legacy tests | |
| working-directory: python | |
| run: pytest tests/ -v --tb=short -q |