Code Coverage #1092
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: "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 |