From 8b4c14a6ccb602a460aab0062c7830f1c48e18d9 Mon Sep 17 00:00:00 2001 From: Gui-FernandesBR Date: Sun, 18 Aug 2024 09:39:06 -0300 Subject: [PATCH] Fix CI tests with new numpy version --- .github/workflows/test_pytest.yaml | 4 +++- rocketpy/mathutils/function.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_pytest.yaml b/.github/workflows/test_pytest.yaml index de73d2eaf..0d7825da3 100644 --- a/.github/workflows/test_pytest.yaml +++ b/.github/workflows/test_pytest.yaml @@ -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 diff --git a/rocketpy/mathutils/function.py b/rocketpy/mathutils/function.py index d49fe64bc..7b4c2f23a 100644 --- a/rocketpy/mathutils/function.py +++ b/rocketpy/mathutils/function.py @@ -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