docs: update README version badge (#11) #135
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: | |
| schedule: | |
| - cron: "0 6 * * *" | |
| jobs: | |
| build: | |
| name: build + test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo build --release --verbose | |
| - run: cargo test --verbose | |
| agent-eval: | |
| name: live agent eval (optional) | |
| runs-on: macos-latest | |
| if: github.event_name == 'schedule' || contains(github.event.head_commit.message, '[eval]') | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: brew install ollama | |
| - run: ollama pull qwen2.5-coder:7b | |
| - run: brew services start ollama | |
| - run: cargo build --release | |
| - run: cargo run --release -- --eval read-and-explain --model qwen2.5-coder:7b | |
| - run: cargo run --release -- --eval fix-failing-test --model qwen2.5-coder:7b | |
| lint: | |
| name: clippy + fmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo fmt --all -- --check | |
| - run: cargo clippy --all-targets -- -D warnings | |
| dependency-audit: | |
| name: dependency audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo install cargo-audit --locked | |
| - run: cargo audit |