Skip to content

feat(slim): add native shell support and stdio bridge #152

feat(slim): add native shell support and stdio bridge

feat(slim): add native shell support and stdio bridge #152

Workflow file for this run

name: Publish Project Coverage to Codecov
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
coverage:
runs-on: ubuntu-latest
env:
PYO3_PYTHON: python
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable
- name: Setup Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.12"
- name: Install Linux dependencies
run: sudo apt-get update && sudo apt-get install -y pkg-config nettle-dev libssl-dev
- name: Restore Rust cache
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
with:
cache-on-failure: true
- name: Install just
uses: taiki-e/install-action@80779d0b81222e7a5d0c5751d3c2537d4a36f556 # v2
with:
tool: just
- name: Install LLVM tools
run: rustup component add llvm-tools-preview
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@80779d0b81222e7a5d0c5751d3c2537d4a36f556 # v2
with:
tool: cargo-llvm-cov
- name: Generate coverage report
run: just coverage
- name: Upload combined coverage to Codecov
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
with:
files: coverage/lcov.info
flags: rust
name: rust-coverage
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}