feat(python): support eager argument in load_sheet
#877
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.9" | |
| defaults: | |
| run: | |
| # Prevents windows runners from running on powershell | |
| shell: bash | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - 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 | |
| - name: Set up rustfmt | |
| run: rustup component add rustfmt | |
| - name: install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Install dependencies and lint | |
| run: | | |
| make install | |
| make lint | |
| check-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - 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@v6 | |
| - 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.9", "3.10", "3.11", "3.12", "3.13"] | |
| os: ["ubuntu-latest", "macos-14", "windows-latest"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - 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@v6 | |
| - name: Install dependencies and test | |
| run: | | |
| make install | |
| make test | |
| check-wheel-build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| # Only testing the build on the smallest supported Python version | |
| # since we're building abi3 wheels | |
| python-version: ["3.9"] | |
| os: ["ubuntu-latest", "macos-14", "windows-latest"] | |
| architecture: [x86-64, aarch64] | |
| exclude: | |
| - os: windows-latest | |
| architecture: aarch64 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - 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: build (fast) | |
| uses: PyO3/maturin-action@v1 | |
| with: | |
| manylinux: auto | |
| command: build | |
| args: "-o dist" | |
| target: ${{ steps.target.outputs.target }} | |
| - name: Upload wheels | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "wheels-${{ matrix.os }}-python-${{ matrix.python-version }}-${{ matrix.architecture }}" | |
| path: dist | |
| check-sdist-build: | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - 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@v4 | |
| with: | |
| name: sdist | |
| path: dist |