Skip to content

Code Coverage

Code Coverage #1099

Workflow file for this run

name: "Code Coverage"
on:
schedule:
- cron: 13 9 * * *
workflow_dispatch:
env:
# Use `haswell` instead of `native` due to some GitHub Actions runners not
# supporting some `avx512` instructions.
RUSTFLAGS: -C target-cpu=haswell
jobs:
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Collect coverage
uses: actions-rs/[email protected]
with:
args: "--ignore-tests --all-features"
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v4
- name: Upload coverage to GitHub
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: cobertura.xml