Skip to content

Commit abdd535

Browse files
authored
chore: Support numpy v2 (#491)
1 parent 34ee023 commit abdd535

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/run_tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ permissions:
1313

1414
jobs:
1515
build:
16-
16+
name: Python ${{ matrix.python-version }} - numpy ${{ matrix.numpy-version }}
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
2020
python-version: ["3.9", "3.10", "3.11", "3.12"]
21+
numpy-version: [">=1.25,<2", ">=2"]
2122

2223
steps:
2324
- uses: actions/checkout@v3
@@ -29,6 +30,7 @@ jobs:
2930
uses: snok/install-poetry@v1
3031
- name: Install test dependencies
3132
run: |
33+
poetry add "numpy${{ matrix.numpy-version }}"
3234
poetry install --with dev,nbtools
3335
- name: Test with pytest
3436
run: |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ packages = [{include = "bayes_opt"}]
1010
[tool.poetry.dependencies]
1111
python = "^3.9"
1212
scikit-learn = "^1.0.0"
13-
numpy = "^1.9.0"
13+
numpy = ">=1.25"
1414
scipy = "^1.0.0"
1515
colorama = "^0.4.6"
1616

0 commit comments

Comments
 (0)