36 implement graph coarsening #84
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
name: CI/CD | |
on: | |
push: | |
branches: [main] | |
tags: | |
- v** | |
pull_request: | |
branches: [main] | |
jobs: | |
clippy_check: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup component add clippy | |
- uses: kristof-mattei/clippy-check@pr-for-original-repo # switch to original when merged https://github.com/actions-rs/clippy-check/pull/165 | |
with: | |
args: --all-features -- -D warnings | |
fmt_check: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
components: rustfmt | |
override: true | |
- name: Rustfmt | |
run: cargo fmt -- --check | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- name: Build | |
run: cargo build --all-features --verbose | |
- name: Tests | |
run: cargo test --all-features --verbose | |
miri: | |
name: "Miri" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install | |
run: | | |
rustup toolchain install nightly --component miri | |
rustup override set nightly | |
cargo miri setup | |
- name: Tests | |
run: cargo miri test --all-features --verbose | |
coverage_report: | |
name: Coverage Report | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
components: llvm-tools-preview | |
override: true | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
- name: Install cargo-llvm-cov | |
run: cargo install cargo-llvm-cov | |
- name: Generate code coverage | |
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info | |
- name: Coveralls | |
uses: coverallsapp/[email protected] | |
with: | |
path-to-lcov: "./lcov.info" | |
github-token: ${{ secrets.GITHUB_TOKEN }} |