Update nalgebra requirement from 0.32.2 to 0.33.0 #348
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: coverage | |
env: | |
CARGO_TERM_COLOR: always | |
on: [push] | |
jobs: | |
coverage: | |
name: coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Rust nightly toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
- name: Install llvm-tools-preview | |
run: | | |
rustup default nightly | |
rustup component add llvm-tools-preview | |
- name: Install grcov | |
run: curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf - | |
- name: Generate code coverage | |
run: | | |
export RUSTFLAGS="-Zinstrument-coverage" | |
export RUSTDOCFLAGS="-Zinstrument-coverage -Zunstable-options --persist-doctests target/debug/doctestbins" | |
cargo +nightly build --verbose --all --features="no-overflow-test","serde-serialize" | |
LLVM_PROFILE_FILE="lattice_qcd_rs-%p-%m.profraw" cargo +nightly test --verbose --features="no-overflow-test","serde-serialize" --workspace --exclude lattice_qcd_rs-procedural_macro | |
- name: parse code coverage | |
run: ./grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info | |
- name: Upload to codecov.io | |
run: bash <(curl -s https://codecov.io/bash) -f lcov.info |