Skip to content

Add output_packet to PodResult #383

Add output_packet to PodResult

Add output_packet to PodResult #383

Workflow file for this run

name: Tests
on:
- pull_request
jobs:
diagram:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Diagram
uses: ./.github/actions/build-diagram
rust-syntax-style-format-and-integration:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Install Rust + components
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.87
components: rustfmt,clippy
- name: Install code coverage
uses: taiki-e/install-action@cargo-llvm-cov
- name: Run syntax and style tests
run: cargo clippy --all-targets -- -D warnings
- name: Run format test
run: cargo fmt --check
- name: Run integration tests w/ coverage report
env:
RUST_BACKTRACE: full
run: |
mkdir -p tests/.tmp
cargo llvm-cov \
--ignore-filename-regex "bin/.*|lib\.rs" \
--cobertura \
--output-path target/llvm-cov-target/cobertura.xml \
-- \
--nocapture
- name: Upload to codecov.io
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
files: target/llvm-cov-target/cobertura.xml
verbose: true
python-integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python, dependencies, and orcapod
run: |
set -e
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv -p 3.10 ~/.local/share/base
uv pip install cffi maturin[patchelf] -p ~/.local/share/base
uv pip install eclipse-zenoh -p ~/.local/share/base
. ~/.local/share/base/bin/activate
maturin develop --uv
- name: Run smoke test
env:
RUST_BACKTRACE: full
run: |
. ~/.local/share/base/bin/activate
python tests/extra/python/smoke_test.py -- tests/.tmp
- name: Run agent test
env:
RUST_BACKTRACE: full
run: |
. ~/.local/share/base/bin/activate
python tests/extra/python/agent_test.py -- tests/.tmp