feat(python): implement __repr__ for CellError and CellErrors #1051
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| env: | |
| MIN_PYTHON_VERSION: "3.10" | |
| defaults: | |
| run: | |
| # Prevents windows runners from running on powershell | |
| shell: bash | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "${{ env.MIN_PYTHON_VERSION }}" | |
| - name: Set up rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Set up rustfmt | |
| run: rustup component add rustfmt | |
| - name: install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install dependencies and lint | |
| run: | | |
| make install | |
| make lint | |
| check-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Set up rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Check documentation | |
| run: | | |
| make install | |
| make doc | |
| # GitHub provides only x86_64 runners, so we cannot test on arm architecture | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"] | |
| os: ["ubuntu-latest", "macos-14", "windows-latest"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install dependencies and test | |
| run: | | |
| make install | |
| make test | |
| - name: Test with pandas<3 | |
| run: | | |
| uv pip install "pandas<3" | |
| make test-python | |
| check-wheel-build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| # Only testing the build on the smallest supported Python version for abi3 wheels | |
| python-version: ["3.10", "3.14t"] | |
| os: ["ubuntu-latest", "macos-14", "windows-latest"] | |
| architecture: [x86-64, aarch64] | |
| exclude: | |
| - os: windows-latest | |
| architecture: aarch64 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Set Rust target | |
| id: target | |
| if: matrix.os != 'windows-latest' | |
| run: | | |
| TARGET=${{ matrix.os == 'macos-14' && (matrix.architecture == 'aarch64' && 'aarch64-apple-darwin' || 'x86_64-apple-darwin') || (matrix.architecture == 'aarch64' && 'aarch64-unknown-linux-gnu' || null) }} | |
| echo "target=$TARGET" >> $GITHUB_OUTPUT | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: build (fast) | |
| uses: PyO3/maturin-action@v1 | |
| with: | |
| manylinux: auto | |
| command: build | |
| args: "-o dist -i python${{ matrix.python-version }}" | |
| target: ${{ steps.target.outputs.target }} | |
| - name: Upload wheels | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: "wheels-${{ matrix.os }}-python-${{ matrix.python-version }}-${{ matrix.architecture }}" | |
| path: dist | |
| check-sdist-build: | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: build sdist | |
| uses: PyO3/maturin-action@v1 | |
| with: | |
| manylinux: auto | |
| command: sdist | |
| args: "-o dist" | |
| - name: upload sdist | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: sdist | |
| path: dist |