Update pyo3 to v0.22 and update code to use pyo3 Bound
types
#678
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: Rust | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lints: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --check | |
- uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --all-features | |
tests: | |
strategy: | |
matrix: | |
runner: | |
- ubuntu-latest | |
- macos-latest | |
runs-on: ${{ matrix.runner }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
benchmarks: | |
runs-on: ubuntu-latest | |
if: github.base_ref != '' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
- uses: boa-dev/criterion-compare-action@v3 | |
with: | |
features: bench | |
branchName: ${{ github.base_ref }} |