flowmatch 0.1.7

Flow matching primitives (ndarray-first; backend-agnostic) with semidiscrete FM and RFM experiments.
Documentation
name: CI

on:
  push:
  pull_request:

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6

      - name: Install Rust
        uses: dtolnay/rust-toolchain@stable
        with:
          components: rustfmt, clippy

      - name: rustfmt
        run: cargo fmt --all --check

      - name: clippy
        run: cargo clippy --all-targets --all-features -- -D warnings

      - name: test
        run: cargo test --all-targets --all-features

      - name: test (sheaf-evals)
        run: cargo test --all-targets --features sheaf-evals

      - name: check (burn)
        run: cargo check --all-targets --features burn

      # Only the deterministic (hand-rolled f32) examples are gated here. The
      # burn_* examples assert a training-outcome bound that is environment
      # dependent (burn-ndarray's parallel float reductions vary across hosts),
      # so they are compile-checked via `check (burn)` but not run-gated.
      - name: run example assertions
        run: |
          cargo run --example rfm_minibatch_ot_linear --release
          cargo run --example sd_fm_semidiscrete_linear --release
          cargo run --example rfm_fisher_simplex --features riemannian --release

      - name: Semver check
        if: github.event_name == 'pull_request'
        run: |
          cargo install cargo-semver-checks --locked || true
          cargo semver-checks