diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 798e181be..a848a1d39 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -116,6 +116,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + with: + submodules: recursive - name: Install nightly toolchain uses: actions-rs/toolchain@v1 @@ -123,18 +125,15 @@ jobs: toolchain: nightly override: true - - name: Install cargo-tarpaulin - uses: actions-rs/install@v0.1 + - name: Install and run cargo-tarpaulin + uses: actions-rs/tarpaulin@v0.1 with: - crate: cargo-tarpaulin - version: latest - use-tool-cache: true - - - name: Coverage with tarpaulin - run: cargo tarpaulin --all --all-features --timeout 600 --out Lcov -- --test-threads 1 + # TODO: update to latest tarpaulin once artefact download is fixed: https://github.com/actions-rs/tarpaulin/pull/23 + version: "0.22.0" + args: "--workspace --all-features --run-types Tests,Doctests --out Lcov --timeout 300" - name: Upload coverage - uses: coverallsapp/github-action@master + uses: coverallsapp/github-action@v1 with: github-token: ${{ secrets.GITHUB_TOKEN }} path-to-lcov: ./lcov.info diff --git a/src/io/fasta.rs b/src/io/fasta.rs index aa9a4591a..46667780d 100644 --- a/src/io/fasta.rs +++ b/src/io/fasta.rs @@ -11,7 +11,7 @@ //! //! In this example, we parse a fasta file from stdin and compute some statistics //! -//! ``` +//! ```no_run //! use bio::io::fasta; //! use std::io; //! @@ -34,7 +34,7 @@ //! //! We can also use a `while` loop to iterate over records. //! This is slightly faster than the `for` loop. -//! ``` +//! ```no_run //! use bio::io::fasta; //! use std::io; //! let mut records = fasta::Reader::new(io::stdin()).records(); @@ -79,7 +79,7 @@ //! //! In this example we filter reads from stdin on sequence length and write them to stdout //! -//! ``` +//! ```no_run //! use bio::io::fasta; //! use bio::io::fasta::FastaRead; //! use std::io; diff --git a/src/io/fastq.rs b/src/io/fastq.rs index 23067eadb..220cd3718 100644 --- a/src/io/fastq.rs +++ b/src/io/fastq.rs @@ -11,7 +11,7 @@ //! //! In this example, we parse a fastq file from stdin and compute some statistics //! -//! ``` +//! ```no_run //! use bio::io::fastq; //! use std::io; //! let mut reader = fastq::Reader::new(io::stdin()); @@ -31,7 +31,7 @@ //! ``` //! //! We can also use a `while` loop to iterate over records -//! ``` +//! ```no_run //! use bio::io::fastq; //! use std::io; //! let mut records = fastq::Reader::new(io::stdin()).records(); @@ -78,7 +78,7 @@ //! //! In this example we filter reads from stdin on mean quality (Phred + 33) and write them to stdout //! -//! ``` +//! ```no_run //! use bio::io::fastq; //! use bio::io::fastq::FastqRead; //! use std::io; diff --git a/src/io/gff.rs b/src/io/gff.rs index a6654ce5e..b34b0d56f 100644 --- a/src/io/gff.rs +++ b/src/io/gff.rs @@ -11,7 +11,7 @@ //! //! # Example //! -//! ``` +//! ```no_run //! // import functions (at top of script) //! use bio::io::gff; //! use std::io; diff --git a/src/io/newick.rs b/src/io/newick.rs index f8d252f5c..9e5954840 100644 --- a/src/io/newick.rs +++ b/src/io/newick.rs @@ -14,7 +14,7 @@ //! use bio::io::newick; //! //! let tree = newick::from_string("(A:0.1,B:0.2,(C:0.3,D:0.4)E:0.5)F;").unwrap(); -//! for taxon in tree.raw_nodes() { +//! for taxon in tree.g.raw_nodes() { //! println!("{}", taxon.weight); //! } //! ``` diff --git a/src/lib.rs b/src/lib.rs index fe9c09a48..e25d2d095 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -95,7 +95,7 @@ //! //! An example of using `rust-bio`: //! -//! ```rust +//! ```no_run //! // Import some modules //! use bio::alphabets; //! use bio::data_structures::bwt::{bwt, less, Occ};