name: Tests
on:
push:
branches:
pull_request:
branches:
workflow_dispatch:
workflow_call:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# build with no features
- name: build no features
run: cargo build --no-default-features
# build with just plotting feature
- name: build plotting tests
run: cargo build --features "plotting"
# build tests with just transforms feature
- name: build transforms tests
run: cargo build --features "transforms"
# Run tests with all features
- name: Run complete tests
run: cargo test --all-features --lib