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 }} 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.