Skip to content
Open
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
33 changes: 33 additions & 0 deletions .github/workflows/rust-local-inspect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Rust local inspector

on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:

jobs:
local-inspect:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install Python test dependencies
run: uv sync --frozen --extra test
- name: Validate Rust formatting, tests, and lints
run: |
cargo fmt --check
cargo test --locked
cargo clippy --locked -- -D warnings
- name: Build and run executable compatibility checks
run: |
cargo build --release --locked
AGENT_SCAN_RUST_BINARY="$PWD/target/release/snyk-agent-scan-rust" \
uv run --frozen --extra test pytest tests/rust/test_local_inspect_equivalence.py -q --no-cov
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ response.json
# Build artifacts
dist/
build/
target/

# Worktree-local Rust toolchains used for the experimental binary
.cargo/
.rustup/
.toolchain/

# Shiv artifacts
*.pyz
Expand Down
Loading
Loading