From c4727337c2550dfbcbd0b7daa284f1d5e3af0127 Mon Sep 17 00:00:00 2001 From: Gui-FernandesBR Date: Fri, 1 Nov 2024 21:02:55 -0300 Subject: [PATCH 1/2] DEV: updates workflows to include python 3.13 --- .github/workflows/test-pytest-slow.yaml | 10 +++++++++- .github/workflows/test_pytest.yaml | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-pytest-slow.yaml b/.github/workflows/test-pytest-slow.yaml index a5fe93ee7..5f6ba8af7 100644 --- a/.github/workflows/test-pytest-slow.yaml +++ b/.github/workflows/test-pytest-slow.yaml @@ -4,6 +4,14 @@ on: schedule: - cron: "0 17 * * 5" # at 05:00 PM, only on Friday timezone: "America/Sao_Paulo" + push: + branches: + - main + paths: + - "**.py" + - ".github/**" + - "pyproject.toml" + - "requirements*" defaults: run: @@ -15,7 +23,7 @@ jobs: strategy: matrix: fail-fast: false - python-version: [3.9, 3.12] + python-version: [3.9, 3.13] env: OS: ${{ matrix.os }} diff --git a/.github/workflows/test_pytest.yaml b/.github/workflows/test_pytest.yaml index fb12086cc..64f5cd82c 100644 --- a/.github/workflows/test_pytest.yaml +++ b/.github/workflows/test_pytest.yaml @@ -18,8 +18,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest] - python-version: [3.9, 3.12] + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: [3.9, 3.13] env: OS: ${{ matrix.os }} PYTHON: ${{ matrix.python-version }} From a7299c6df19a6757dd108e6c8021d6d3851b51f9 Mon Sep 17 00:00:00 2001 From: Pedro Bressan Date: Fri, 8 Nov 2024 17:11:12 +0100 Subject: [PATCH 2/2] DOC: edit doctest due to floating point precision. --- rocketpy/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rocketpy/tools.py b/rocketpy/tools.py index e4c2514f5..7668ecbc8 100644 --- a/rocketpy/tools.py +++ b/rocketpy/tools.py @@ -123,8 +123,8 @@ def find_roots_cubic_function(a, b, c, d): First we define the coefficients of the function ax**3 + bx**2 + cx + d >>> a, b, c, d = 1, -3, -1, 3 >>> x1, x2, x3 = find_roots_cubic_function(a, b, c, d) - >>> x1, x2, x3 - ((-1+0j), (3+7.401486830834377e-17j), (1-1.4802973661668753e-16j)) + >>> x1 + (-1+0j) To get the real part of the roots, use the real attribute of the complex number.