Skip to content

Commit b838d53

Browse files
DEV: updates workflows to include python 3.13 (#719)
* DEV: updates workflows to include python 3.13 * DOC: edit doctest due to floating point precision. --------- Co-authored-by: Pedro Bressan <[email protected]>
1 parent a902adf commit b838d53

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/test-pytest-slow.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ on:
44
schedule:
55
- cron: "0 17 * * 5" # at 05:00 PM, only on Friday
66
timezone: "America/Sao_Paulo"
7+
push:
8+
branches:
9+
- main
10+
paths:
11+
- "**.py"
12+
- ".github/**"
13+
- "pyproject.toml"
14+
- "requirements*"
715

816
defaults:
917
run:
@@ -15,7 +23,7 @@ jobs:
1523
strategy:
1624
matrix:
1725
fail-fast: false
18-
python-version: [3.9, 3.12]
26+
python-version: [3.9, 3.13]
1927

2028
env:
2129
OS: ${{ matrix.os }}

.github/workflows/test_pytest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
runs-on: ${{ matrix.os }}
1919
strategy:
2020
matrix:
21-
os: [ubuntu-latest, macos-latest]
22-
python-version: [3.9, 3.12]
21+
os: [ubuntu-latest, macos-latest, windows-latest]
22+
python-version: [3.9, 3.13]
2323
env:
2424
OS: ${{ matrix.os }}
2525
PYTHON: ${{ matrix.python-version }}

rocketpy/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ def find_roots_cubic_function(a, b, c, d):
123123
First we define the coefficients of the function ax**3 + bx**2 + cx + d
124124
>>> a, b, c, d = 1, -3, -1, 3
125125
>>> x1, x2, x3 = find_roots_cubic_function(a, b, c, d)
126-
>>> x1, x2, x3
127-
((-1+0j), (3+7.401486830834377e-17j), (1-1.4802973661668753e-16j))
126+
>>> x1
127+
(-1+0j)
128128
129129
To get the real part of the roots, use the real attribute of the complex
130130
number.

0 commit comments

Comments
 (0)