Skip to content

feat: support Pandas v3 #166

feat: support Pandas v3

feat: support Pandas v3 #166

Workflow file for this run

name: Python CI
on:
push:
branches: [main]
paths:
- ".github/workflows/python.yml"
- "python-client/**"
pull_request:
branches: [main]
paths:
- ".github/workflows/python.yml"
- "python-client/**"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", 3.11, 3.12, 3.13]
pandas:
- {spec: ">2.2,<3.0", key: "2.x"}
- {spec: ">=3.0,<4.0", key: "3.x"}
defaults:
run:
working-directory: ./python-client
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- run: pip install -r requirements.txt
- uses: actions/cache@v4
with:
path: ~/.cache/uv
key: uv-${{ matrix.python-version }}-${{ matrix.pandas.key }}-${{ hashFiles('uv.lock') }}
- run: |
uv sync --frozen --all-extras
uv pip install "pandas${{ matrix.pandas.spec }}"
- run: uv run pytest
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./python-client
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.13
cache: pip
- run: pip install -r requirements.txt
- uses: actions/cache@v4
with:
path: ~/.cache/uv
key: uv-3.13-${{ hashFiles('uv.lock') }}
- run: uv sync --frozen --all-extras
- run: uv run uv-sort --check
- run: uv run ruff check --output-format github src/
- run: uv run ruff format --check src/