Bump pyo3 from 0.22.6 to 0.24.1 #1484
This file contains hidden or 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: Build rust crate | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| tags: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - "**" | |
| jobs: | |
| build_crate: | |
| name: Crate | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up rusts | |
| uses: dtolnay/[email protected] | |
| - name: fmt | |
| run: cargo fmt --all -- --files-with-diff --check | |
| - name: clippy | |
| run: cargo clippy --workspace --all-features --all-targets -- -D warnings | |
| - name: Install cargo-machete | |
| run: cargo install cargo-machete | |
| - name: Unused dependencies | |
| run: cargo machete | |
| - name: tests | |
| run: cargo test --workspace --all-features && cargo test --workspace --all-features --release | |
| - name: build | |
| run: cargo build --workspace --all-features --release | |
| - name: Install cargo-workspaces | |
| run: cargo install cargo-workspaces --locked | |
| - name: Publish (dry run) | |
| run: cargo ws publish --publish-as-is --dry-run | |
| - name: publish to crates.io if tagged | |
| if: startsWith(github.event.ref, 'refs/tags') | |
| env: | |
| CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }} | |
| run: cargo ws publish --publish-as-is |