asciimath-parser 0.2.0

A fast extensible memory-efficient asciimath parser
Documentation
name: tests

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]
  workflow_call:

env:
  CARGO_TERM_COLOR: always

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v7
    - name: Install nightly toolchain
      run: rustup toolchain install nightly --component clippy
    - name: Install llvm-tools-preview
      run: rustup component add llvm-tools-preview
    - uses: Swatinem/rust-cache@v2
    - uses: taiki-e/install-action@cargo-llvm-cov
    - name: Check formatting
      run: cargo fmt --verbose --check
    - name: Build all features
      run: cargo build --verbose --all-features
    - name: Build no default features
      run: cargo build --verbose --no-default-features
    - name: Run tests with coverage
      run: cargo llvm-cov --verbose --all-features --fail-under-lines 95
    - name: Run benches
      run: cargo +nightly bench --verbose
    - name: Run lints
      run: cargo clippy --verbose --all-features -- -D warnings
    - name: Run bench lints
      run: cargo +nightly clippy --verbose --benches -- -D warnings