Skip to content

Commit

Permalink
Fix CI tests with new numpy version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui-FernandesBR authored and juliomachad0 committed Aug 18, 2024
1 parent 515d376 commit e53a32c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test_pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ jobs:
run: pytest tests/unit --cov=rocketpy

- name: Run Documentation Tests
run: pytest rocketpy --doctest-modules --cov=rocketpy --cov-append
run: |
pip install numpy --upgrade
pytest rocketpy --doctest-modules --cov=rocketpy --cov-append
- name: Run Integration Tests
run: pytest tests/integration --cov=rocketpy --cov-append
Expand Down
1 change: 1 addition & 0 deletions rocketpy/mathutils/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
# Numpy 1.x compatibility,
# TODO: remove these lines when all dependencies support numpy>=2.0.0
if np.lib.NumpyVersion(np.__version__) >= "2.0.0b1":
# pylint: disable=no-name-in-module
from numpy import trapezoid # pragma: no cover
else:
from numpy import trapz as trapezoid # pragma: no cover
Expand Down

0 comments on commit e53a32c

Please sign in to comment.