Skip to content

Commit

Permalink
Workaround xarray not supporting pandas 2.0 yet
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Apr 6, 2023
1 parent f3c800d commit 6c6e9ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,15 @@ jobs:
# Run on the full set on schedule, workflow_dispatch and push&tags events, otherwise on a subset.
python-version: ${{ ( github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || ( github.event_name == 'push' && github.ref_type == 'tag' ) ) && fromJSON('["3.7", "3.8", "3.9", "3.10", "3.11"]') || fromJSON('["3.7", "3.9", "3.11"]') }}
bokeh-version: ['2', '3']
pandas-version: ['2']
pandas-version: ['1']
exclude:
# Bokeh 3 does not support Python 3.7
- bokeh-version: '3'
python-version: '3.7'
include:
- pandas-version: '1'
- pandas-version: '2'
bokeh-version: '3'
python-version: '3.8'
os: 'ubuntu-latest'
python-version: '3.10'
timeout-minutes: 120 # Because slow conda solve on Python 3.7
defaults:
run:
Expand All @@ -75,11 +74,12 @@ jobs:
conda-update: true
conda-mamba: mamba
id: install
- name: Pandas 1.5 install
if: steps.install.outputs.cache-hit != 'true' && matrix.pandas-version == '1'
- name: Pandas 2 install
if: steps.install.outputs.cache-hit != 'true' && matrix.pandas-version == '2'
run: |
conda activate test-environment
mamba install pandas=1.5 -y
conda uninstall pandas dask dask-core xarray --force --offline -y
mamba install pandas dask-core -y
- name: bokeh sampledata
run: |
conda activate test-environment
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
'scipy',
'selenium',
'numpy <1.24', # Upper pin because of numba error
'pandas <2.0', # xarray does not support pandas 2.0 yet: https://github.com/pydata/xarray/issues/7716
]

# Packages not working on python 3.11 because of numba
Expand Down

0 comments on commit 6c6e9ac

Please sign in to comment.