Skip to content

Added clippy checks for examples to CI, removed some argmin checks #510

Added clippy checks for examples to CI, removed some argmin checks

Added clippy checks for examples to CI, removed some argmin checks #510

Workflow file for this run

name: argmin book
on:
pull_request:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
book:
name: Book test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache dependencies
id: cache-dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Generate harness
working-directory: ./media/book/tests
run: ./generate_book_tests.sh
- name: Test code samples
working-directory: ./media/book/tests
run: cargo test