name: Codecov
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
codecov:
name: Codecov
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 with:
persist-credentials: false
- name: Install Rust 1.97.1
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 with:
toolchain: 1.97.1
components: clippy, rustfmt, llvm-tools-preview
- name: Rust Cache
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@67729d5c413db75907f0ad1e39bb04b9c868ff60 with:
tool: cargo-llvm-cov
- name: Generate coverage (lcov)
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
- name: Install nextest
uses: taiki-e/install-action@67729d5c413db75907f0ad1e39bb04b9c868ff60 with:
tool: nextest
version: '0.9.70'
- name: Run tests (JUnit)
run: |
cargo nextest run --all-features --profile ci
cp target/nextest/ci/junit.xml junit.xml
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
- name: Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: lcov.info
slug: Limen-Neural/neuromod
fail_ci_if_error: false
verbose: true