Skip to content

Commit 851fff5

Browse files
committed
fix: numpy constraints
1 parent 1775f1a commit 851fff5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/run_tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,13 @@ jobs:
3838
uv tool install poetry
3939
- name: Install test dependencies
4040
run: |
41-
poetry add "numpy${{ matrix.numpy-version }}"
42-
poetry install --with dev,nbtools
41+
poetry self add poetry-plugin-export
42+
poetry export -f requirements.txt --with dev,nbtools --without-hashes --output requirements-dev.txt
43+
echo "numpy${{ matrix.numpy-version }}" >> constraints.txt
44+
uv pip compile requirements-dev.txt --output-file requirements.txt \
45+
--python-version ${{ matrix.python-version }} \
46+
--override constraints.txt
47+
poetry run pip install -r requirements.txt
4348
- name: Test with pytest
4449
run: |
4550
poetry run pytest --cov-report xml --cov=bayes_opt/

0 commit comments

Comments
 (0)