Skip to content

Commit 0bb8d6c

Browse files
authored
Python-3.14 on CI (#8)
* CI python range is now 3.9 -> 3.14 & 3.14t * Add RTD sphinx configuration key * Added slow tests durations report * Run tests with PYTHONWARNINGS=error Signed-off-by: Christian López Barrón <chris.gfz@gmail.com>
1 parent 7f54852 commit 0bb8d6c

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
python-version: ["3.8", "3.13", "3.13t"]
12+
python-version: ["3.9", "3.14", "3.14t"]
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515
- name: Set up Python ${{ matrix.python-version }}
16-
uses: Quansight-Labs/setup-python@v5 # until https://github.com/actions/setup-python/issues/771 is resolved
16+
uses: actions/setup-python@v6
1717
with:
1818
python-version: ${{ matrix.python-version }}
1919
- name: Install
@@ -23,7 +23,7 @@ jobs:
2323
python -m pip install .
2424
- name: Test
2525
run: |
26-
pytest --cov .
26+
PYTHONWARNINGS=error pytest --cov --durations=10 .
2727
# https://github.com/marketplace/actions/codecov
2828
- name: Codecov Report
2929
uses: codecov/codecov-action@v4

.readthedocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ python:
1010
path: .
1111
extra_requirements:
1212
- docs
13+
14+
sphinx:
15+
configuration: docs/source/conf.py

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ keywords = pprint pformat ptree pretty print tree format formatting
88
author_email = chris.gfz@gmail.com
99
author = Christian López Barrón
1010
url = https://github.com/chrizzFTD/printree
11+
# Try to align to https://devguide.python.org/versions/
1112
classifiers =
12-
Programming Language :: Python :: 3.8
1313
Programming Language :: Python :: 3.9
1414
Programming Language :: Python :: 3.10
1515
Programming Language :: Python :: 3.11
1616
Programming Language :: Python :: 3.12
1717
Programming Language :: Python :: 3.13
18+
Programming Language :: Python :: 3.14
1819

1920
[options]
2021
packages = find:

tests/test_printree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_flat_list(self):
3131
self.assertEqual(actual, expected)
3232

3333
def test_ascii_with_recursion(self):
34-
"""Confirm multiline key, value and recursion build a similar tree to:
34+
r"""Confirm multiline key, value and recursion build a similar tree to:
3535
3636
.
3737
|-- AB

0 commit comments

Comments
 (0)