Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: include doctests in test coverage calculations #397

Merged
7 changes: 4 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ jobs:
with:
submodules: recursive

- name: Install stable toolchain
- name: Install nightly toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
toolchain: nightly
override: true

- name: Install system dependencies
Expand All @@ -67,8 +67,9 @@ jobs:
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
# TODO: update to latest tarpaulin once artefact download is fixed: https://github.com/actions-rs/tarpaulin/pull/23
version: "0.22.0"
args: "--all-features --out Lcov -- --test-threads 1"
args: "--all-features --run-types Tests,Doctests --out Lcov -- --test-threads 1"

- name: Upload coverage
uses: coverallsapp/github-action@v1
Expand Down