chore(deps): update thiserror requirement from 1.0 to 2.0 #921
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
on: | |
push: | |
branches: [main, dev] | |
pull_request: | |
name: CI | |
jobs: | |
run-tests: | |
runs-on: ${{ matrix.os }} | |
#container: | |
# image: ubuntu:20.10 | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
rust: | |
- stable | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
submodules: recursive | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@cargo-hack | |
- name: test forrustts | |
run: | | |
cargo hack test --feature-powerset | |
- name: test forrustts-core | |
run: | | |
cargo hack test --manifest-path forrustts-core/Cargo.toml --feature-powerset --optional-deps | |
- name: test forrustts-genetics | |
run: | | |
cargo hack test --manifest-path forrustts-genetics/Cargo.toml --feature-powerset | |
fmt: | |
name: rust fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
submodules: recursive | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt | |
- run: | | |
cargo fmt --all -- --check | |
clippy: | |
name: clippy!! | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
- name: clippy (all targets) | |
run: cargo clippy --workspace --all-targets --all-features -- -D warnings | |
- name: clippy (all targets, all features) | |
run: cargo clippy --workspace --all-targets -- -D warnings |