Skip to content

Commit 19a1dcc

Browse files
authored
fix CI (#262)
* run ci on python 3.12 * temporarily pin to `numpy<3.9` Since `pint` currently does not have a release for 3.9 and `numpy>=2.0`. * configure CI to always use `bash` as the shell * run the nightly CI on python 3.12 * run the doctests on python 3.12 * update the doctest output * temporarily pin `numpy` and `pint`
1 parent 9e98978 commit 19a1dcc

File tree

5 files changed

+110
-102
lines changed

5 files changed

+110
-102
lines changed

.github/workflows/ci-additional.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
python-version: ["3.11"]
24+
python-version: ["3.12"]
2525

2626
steps:
2727
- name: checkout

.github/workflows/ci.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
name: ${{ matrix.os }} py${{ matrix.python-version }}
3333
runs-on: ${{ matrix.os }}
3434
needs: detect-skip-ci-trigger
35+
defaults:
36+
run:
37+
shell: bash -l {0}
3538

3639
if: |
3740
always()
@@ -44,7 +47,7 @@ jobs:
4447
strategy:
4548
fail-fast: false
4649
matrix:
47-
python-version: ["3.9", "3.10", "3.11"]
50+
python-version: ["3.9", "3.10", "3.11", "3.12"]
4851
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
4952

5053
steps:
@@ -73,6 +76,10 @@ jobs:
7376
- name: install dependencies
7477
run: |
7578
python -m pip install -r ci/requirements.txt
79+
if [[ "${{matrix.python-version}}" == "3.9" ]]; then
80+
# remove after the release
81+
python -m pip install 'numpy<2.0'
82+
fi
7683
7784
- name: install pint-xarray
7885
run: python -m pip install --no-deps .

.github/workflows/nightly.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
branches: [ main ]
99
schedule:
1010
- cron: "0 0 * * *" # Daily "At 00:00" UTC
11+
1112
workflow_dispatch:
1213

1314
concurrency:
@@ -52,7 +53,7 @@ jobs:
5253
strategy:
5354
fail-fast: false
5455
matrix:
55-
python-version: ["3.11"]
56+
python-version: ["3.12"]
5657

5758
outputs:
5859
artifacts_availability: ${{ steps.status.outputs.ARTIFACTS_AVAILABLE }}

ci/requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pint
2-
numpy
1+
pint!=0.24.0
2+
numpy<2
33
scipy
44
dask[array]
55
bottleneck

0 commit comments

Comments
 (0)