Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,39 @@ jobs:

- name: Run tests
run: cargo test

integration:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
with:
toolchain: stable

- name: Cache cargo registry and build
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-integration-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
cargo-integration-${{ runner.os }}-

- name: Install uv
uses: astral-sh/setup-uv@v6

- name: Install OGX
run: |
uv venv .venv
. .venv/bin/activate
uv pip install ogx

- name: Run integration tests
run: |
. .venv/bin/activate
make integration-test
14 changes: 13 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,21 @@ repos:
entry: cargo fmt -- --check
types: [rust]
pass_filenames: false
- id: clippy
name: clippy
language: system
entry: cargo clippy --all-targets -- -D warnings
types: [rust]
pass_filenames: false
- id: cargo-test
name: cargo test
language: system
entry: cargo test
types: [rust]
pass_filenames: false

ci:
skip: [rustfmt]
skip: [rustfmt, clippy, cargo-test]
autofix_commit_msg: '[pre-commit.ci] Auto format from pre-commit.com hooks'
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autofix_prs: true
Expand Down
40 changes: 32 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: help install lint format test build pre-commit clean
.PHONY: help install lint format test build pre-commit clean integration-test

help: ## Show this help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
Expand All @@ -21,5 +21,8 @@ build: ## Build Rust project
pre-commit: ## Run pre-commit hooks on all files
pre-commit run --all-files

integration-test: ## Run OGX integration tests (starts OGX automatically)
bash crates/agentic-server/tests/integration/run.sh

clean: ## Remove Rust build artifacts
cargo clean
3 changes: 2 additions & 1 deletion crates/agentic-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ license.workspace = true
repository.workspace = true

[dependencies]
async-trait = "0.1"
bytes = "1"
futures = "0.3"
http = "1"
reqwest = { version = "0.12", features = ["stream"] }
reqwest = { version = "0.12", features = ["stream", "json"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "2"
Expand Down
Loading
Loading