Release 0.3.0 #113
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: [ push, pull_request ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup toolchain install stable --profile minimal | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run tests | |
run: cargo test | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy, rustfmt | |
- uses: Swatinem/rust-cache@v2 | |
- name: Ruff check | |
run: pipx run "ruff<0.2.0" check --output-format github . | |
- name: Ruff format | |
run: pipx run "ruff<0.2.0" format --diff . | |
- name: Rustfmt | |
run: cargo fmt --all -- --check | |
- name: Clippy (pure rust) | |
run: cargo clippy --tests -- -D warnings | |
- name: Clippy (pyo3) | |
run: cargo clippy --tests --all-features -- -D warnings |