Skip to content

Keep (some) input data ordered in MUSE2 #694

Keep (some) input data ordered in MUSE2

Keep (some) input data ordered in MUSE2 #694

name: Cargo Build & Test
on:
push:
branches: [main]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
coverage:
name: Build and test with coverage
runs-on: ubuntu-latest
# Longer timeout because this job involves more steps
timeout-minutes: 20
env:
# Make warnings fatal
RUSTDOCFLAGS: -D warnings
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Check docs
run: cargo doc --no-deps --document-private-items
# Continue even if docs fail
- run: cargo build --verbose
if: always()
- run: cargo test --verbose
- name: Install cargo-llvm-cov
run: cargo install cargo-llvm-cov
- name: Generate code coverage
run: |
cargo llvm-cov --codecov --output-path codecov.json
- name: Upload to codecov.io
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
build_and_test:
name: Build and test
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest]
toolchain:
- stable
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose