Skip to content

Minimum upgrade to async-capable rust-cuda v2 #929

Minimum upgrade to async-capable rust-cuda v2

Minimum upgrade to async-capable rust-cuda v2 #929

Workflow file for this run

name: Code Coverage
on:
push:
branches:
- main
pull_request:
branches:
- '*'
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Code Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
uses: actions/checkout@v2
- name: Install CUDA
uses: Jimver/[email protected]
with:
method: network
use-github-cache: false
use-local-cache: false
- name: Install OpenMPI
run: |
sudo apt-get update -q
sudo apt-get install libopenmpi-dev -y --no-install-recommends
- name: Install the Rust toolchain
run: |
cargo install grcov --force --locked
rustup component add llvm-tools-preview
- name: Generate the code coverage
run: |
RUSTFLAGS="-Cinstrument-coverage" \
LLVM_PROFILE_FILE="codecov-%p-%m.profraw" \
cargo test --workspace
grcov . -s . --binary-path ./target/debug/ \
-t cobertura -o cobertura.xml --branch \
--keep-only "necsim/*" \
--keep-only "rustcoalescence/*" \
--ignore-not-existing \
--excl-line GRCOV_EXCL_LINE \
--excl-start GRCOV_EXCL_START \
--excl-stop GRCOV_EXCL_STOP
- name: Upload to codecov.io
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true