Skip to content

006 download rinf topology #55

006 download rinf topology

006 download rinf topology #55

Workflow file for this run

name: Coverage
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
coverage:
name: Generate Coverage Report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: llvm-tools-preview
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov
- name: Generate coverage report
run: |
cargo llvm-cov -p tp-lib-core --tests \
--lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
flags: unittests
name: tp-lib-core-coverage
- name: Generate HTML report (for artifacts)
if: always()
run: |
cargo llvm-cov -p tp-lib-core --tests \
--html --output-dir coverage-report
- name: Upload HTML report as artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage-report/
retention-days: 30