sideway 0.4.1

A better wrapper for using RDMA programming APIs in Rust flavor
Documentation
name: test

on:
  push:
  pull_request:
  merge_group:

jobs:
  test-linux:
    env:
      CARGO_TERM_COLOR: always
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository code
        uses: actions/checkout@v4
      - name: Install tools required
        uses: taiki-e/install-action@v2
        with:
          tool: just,cargo-nextest,cargo-llvm-cov
      - name: Rust fmt check
        uses: actions-rust-lang/rustfmt@v1
      - name: Run tests
        run: |
          if modinfo mlx5_ib >/dev/null 2>&1 && lsmod | grep -q '^mlx5_ib'; then
            sudo rmmod mlx5_ib
          fi
          cd ${{ github.workspace }}
          sudo apt install libibverbs1 librdmacm1
          cargo clippy --all-targets -- -D warnings
          cargo test
      - name: Get coverage info
        run: |
          just test-basic-with-cov
          just generate-cov
      - name: Upload coverage information
        uses: codecov/codecov-action@v5
        with:
          fail_ci_if_error: false
          token: ${{ secrets.CODECOV_TOKEN }}
          verbose: true
          file: lcov.info