!PATCHED! testing mwalib PR 86 (1.8.0) #290
Workflow file for this run
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
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md | |
on: [push, pull_request] | |
name: Generate Coverage report | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
container: mwatelescope/marlu:latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Generate test lcov coverage into coverage/ dir | |
run: | | |
mkdir -p coverage | |
/opt/cargo/bin/cargo llvm-cov --lib --lcov --output-path coverage/coverage.lcov | |
# this uses the result of the previous run to generate a text summary | |
/opt/cargo/bin/cargo llvm-cov --no-run | |
- name: Upload reports to codecov.io | |
uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |