diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8ecae3b..99c08ef 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -35,3 +35,14 @@ jobs: run: cargo build - name: Run tests run: cargo test --lib + + - name: Run cargo-tarpaulin + uses: actions-rs/tarpaulin@v0.1 + with: + version: '0.15.0' + args: '-- --test-threads 1' + + - name: Upload to codecov.io + uses: codecov/codecov-action@v1.0.2 + with: + token: ${{secrets.CODECOV_TOKEN}} diff --git a/README.md b/README.md index 9d79592..81977f6 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ With `genanki-rs` you can easily generate decks for the popular open source flas *This library and its author(s) are not affiliated/associated with the main Anki project in any way.* -![example workflow](https://github.com/yannickfunk/genanki-rs/actions/workflows/rust.yml/badge.svg) +![example workflow](https://github.com/yannickfunk/genanki-rs/actions/workflows/rust.yml/badge.svg)[![codecov](https://codecov.io/gh/yannickfunk/genanki-rs/branch/master/graph/badge.svg?token=16A3Z7SE6W)](https://codecov.io/gh/yannickfunk/genanki-rs) ## How to use (Use the [`documentation`](https://docs.rs/genanki-rs/0.1.1/genanki_rs/index.html) for further information) Add