Skip to content

Commit 54c2cb7

Browse files
committed
ci: Manually downgrade pandas for Py38
`xarray` changed its minimum python version to 3.9 in 2023.2: pydata/xarray#7461 but a "fix" (version cap) for `pandas` was introduced in `xarray` version 2023.2, which will not be installed on python 3.8 setups. Pip/conda will happily pull the latest `pandas` version (now 2.x which is incompatible with `xarray`). To remedy the situation, manually downgrades the `pandas` version for the Py38 CI setup.
1 parent d359a64 commit 54c2cb7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci_build_and_test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ jobs:
5555
if: matrix.python-version == '3.7'
5656
run: |
5757
pip install "importlib-metadata<5"
58+
- name: Downgrade pandas for Py38
59+
if: matrix.python-version == '3.8'
60+
run: |
61+
pip install "pandas<2"
5862
- name: Install package
5963
run: |
6064
pip install -e ".[all]"

0 commit comments

Comments
 (0)