Skip to content

Commit b7f0627

Browse files
authored
Pin numpy<2 in ci_tests_legacy.yaml (#3641)
To fix `TypeError: ufunc 'create_collection' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''`. Xref shapely/shapely#2098 * Add --color=yes to test_no_images addopts Xref #3330
1 parent 97185e8 commit b7f0627

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci_tests_legacy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
python=3.10
6363
gmt=${{ matrix.gmt_version }}
6464
ghostscript<10
65-
numpy
65+
numpy<2
6666
pandas
6767
xarray
6868
netCDF4

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ doctest: _runtest
5555
# run tests without image comparisons
5656
# run pytest without the --mpl option to disable image comparisons
5757
# use '-o addopts' to override 'addopts' settings in pyproject.toml file
58-
test_no_images: PYTEST_ARGS=-o addopts="--verbose --durations=0 --durations-min=0.2 --doctest-modules"
58+
test_no_images: PYTEST_ARGS=-o addopts="--verbose --color=yes --durations=0 --durations-min=0.2 --doctest-modules"
5959
test_no_images: _runtest
6060

6161
format:

0 commit comments

Comments
 (0)