Skip to content

Commit 8b4c14a

Browse files
Fix CI tests with new numpy version
1 parent 3b61784 commit 8b4c14a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/test_pytest.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ jobs:
5353
run: pytest tests/unit --cov=rocketpy
5454

5555
- name: Run Documentation Tests
56-
run: pytest rocketpy --doctest-modules --cov=rocketpy --cov-append
56+
run: |
57+
pip install numpy --upgrade
58+
pytest rocketpy --doctest-modules --cov=rocketpy --cov-append
5759
5860
- name: Run Integration Tests
5961
run: pytest tests/integration --cov=rocketpy --cov-append

rocketpy/mathutils/function.py

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# Numpy 1.x compatibility,
2121
# TODO: remove these lines when all dependencies support numpy>=2.0.0
2222
if np.lib.NumpyVersion(np.__version__) >= "2.0.0b1":
23+
# pylint: disable=no-name-in-module
2324
from numpy import trapezoid # pragma: no cover
2425
else:
2526
from numpy import trapz as trapezoid # pragma: no cover

0 commit comments

Comments
 (0)