Skip to content

Commit

Permalink
add badges and coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-kie committed Nov 28, 2024
1 parent 020a166 commit 01e4b73
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,24 @@ jobs:
with:
name: hrv-rs-build
path: target/release/

- name: Install cargo-tarpaulin
run: cargo install cargo-tarpaulin

- name: Run Coverage Analysis
run: cargo tarpaulin --out Xml --all-targets --all-features
env:
RUSTFLAGS: "-C link-dead-code" # Required for accurate coverage analysis

- name: Upload Coverage Report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: tarpaulin-report.xml

- name: Upload to Codecov
uses: codecov/codecov-action@v3
with:
files: tarpaulin-report.xml
fail_ci_if_error: true
flags: unittests
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@

# Hrv-rs
[![Pipeline Status](https://github.com/mat-kie/hrv-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/mat-kie/hrv-rs/actions/workflows/ci.yml)
[![Coverage](https://codecov.io/gh/mat-kie/hrv-rs/branch/main/graph/badge.svg?token=YOUR_CODECOV_TOKEN)](https://codecov.io/gh/mat-kie/hrv-rs)


**Hrv-rs** is a Rust-based application designed to analyze Heart Rate Variability (HRV) using Bluetooth Low Energy (BLE) chest straps.

Expand Down

0 comments on commit 01e4b73

Please sign in to comment.