30 lines
670 B
YAML
30 lines
670 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "**"
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: "1.97"
|
|
components: rustfmt, clippy
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: python3 -m unittest discover -s scripts -p 'test_*.py'
|
|
- run: cargo fmt --all -- --check
|
|
- run: cargo check --workspace --all-targets --all-features
|
|
- run: cargo clippy --workspace --all-targets --all-features -- -D warnings
|
|
- run: cargo test --workspace
|