Skip to content

Commit 89b2034

Browse files
committed
add matrix to test both pandas 1 and 2
1 parent e5fdd1c commit 89b2034

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/run-pytest.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,26 @@ jobs:
8080
python -m pytest -x test_init/test_lazy_imports.py
8181
8282
test-optional-legacy-pandas:
83-
name: Optional tests, Pandas 1 (Python 3.9, Pandas 1.2.4)
83+
name: Optional tests (Python ${{ matrix.python-version }}, pandas${{ matrix.pandas-version }}, numpy${{ matrix.numpy-version }})
8484
runs-on: ubuntu-latest
85+
strategy:
86+
fail-fast: false
87+
matrix:
88+
include:
89+
- python-version: "3.9"
90+
pandas-version: "==1.2.4"
91+
numpy-version: "==1.26.4"
92+
setuptools-version: "<82"
93+
- python-version: "3.11"
94+
pandas-version: "==2.3.3"
95+
numpy-version: "==2.4.0"
96+
setuptools-version: ""
8597
steps:
8698
- uses: actions/checkout@v6
8799
- name: Set up Python
88100
uses: actions/setup-python@v6
89101
with:
90-
python-version: "3.9"
102+
python-version: ${{ matrix.python-version }}
91103
- name: Set up Chrome for browser tests
92104
uses: ./.github/actions/setup-chrome-for-pytest
93105
- name: Install dependencies
@@ -96,7 +108,7 @@ jobs:
96108
uv venv
97109
source .venv/bin/activate
98110
uv sync --extra dev_optional
99-
uv pip install pandas==1.2.4 numpy==1.26.4
111+
uv pip install "pandas${{ matrix.pandas-version }}" "numpy${{ matrix.numpy-version }}" "setuptools${{ matrix.setuptools-version }}"
100112
- name: Test core
101113
run: |
102114
source .venv/bin/activate

0 commit comments

Comments
 (0)