chore: bump Python SDK to 0.3.0 for PyPI publish #4
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: Python SDK Tests | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "python/**" | |
| - "src/ffi/**" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "python/**" | |
| - "src/ffi/**" | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| python-sdk-tests: | |
| name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Build native library (cdylib) | |
| run: cargo build --release | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Python package (dev) | |
| run: pip install -e "python/[dev]" | |
| - name: Run tests | |
| run: pytest python/tests/ -v --tb=short |