Skip to content

Docs in main repo #266

Docs in main repo

Docs in main repo #266

Workflow file for this run

name: Coverage
on:
push:
branches: [ master, develop ]
pull_request:
release:
types: [ published ]
env:
CARGO_TERM_COLOR: always
jobs:
coverage:
strategy:
matrix:
os: [ "ubuntu-latest" ]
python: [ "3.10" ]
rust: [ "1.81.0" ]
runs-on: ${{ matrix.os }}
steps:
# Install Python
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
# Checkout and use nigthly toolchain
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.81.0
override: true
- name: Grcov
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
# Run grcov, which outputs a report
- uses: actions-rs/grcov@v0.1
id: coverage
- name: Codecov upload
uses: codecov/codecov-action@v2
with:
files: ${{ steps.coverage.outputs.report }}