Skip to content

Commit adf13ba

Browse files
committed
fix: use spec & key
1 parent df047b2 commit adf13ba

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/python.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ jobs:
1818
strategy:
1919
matrix:
2020
python-version: ["3.10", 3.11, 3.12, 3.13]
21-
pandas-version: [">2.2,<3.0", "3.0,<4.0"]
21+
pandas:
22+
- {spec: ">2.2,<3.0", key: "2.x"}
23+
- {spec: ">=3.0,<4.0", key: "3.x"}
2224
defaults:
2325
run:
2426
working-directory: ./python-client
@@ -32,10 +34,10 @@ jobs:
3234
- uses: actions/cache@v4
3335
with:
3436
path: ~/.cache/uv
35-
key: uv-${{ matrix.python-version }}-${{ matrix.pandas-version }}-${{ hashFiles('uv.lock') }}
37+
key: uv-${{ matrix.python-version }}-${{ matrix.pandas.key }}-${{ hashFiles('uv.lock') }}
3638
- run: |
3739
uv sync --frozen --all-extras
38-
uv pip install "pandas${{ matrix.pandas-version }}"
40+
uv pip install "pandas${{ matrix.pandas.spec }}"
3941
- run: uv run pytest
4042
lint:
4143
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)