Skip to content

Commit

Permalink
Add Python 3.12 test runner (#1339)
Browse files Browse the repository at this point in the history
* Add Python 3.12 test runner

* Update routing_test.py
  • Loading branch information
farmio authored Oct 4, 2023
1 parent 1b227b9 commit bc021cc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ version = {attr = "xknx.__version__.__version__"}
include = ["xknx*"]

[tool.black]
target-version = ["py39", "py310", "py311"]
target-version = ["py39", "py310", "py311", "py312"]
exclude = "generated"


Expand Down
2 changes: 1 addition & 1 deletion requirements/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pre-commit==3.4.0
isort==5.12.0
flake8==6.1.0
pylint==2.17.7
pylint==3.0.0
pytest==7.4.2
pytest-asyncio==0.21.1
pytest-cov==4.1.0
Expand Down
2 changes: 1 addition & 1 deletion test/io_tests/routing_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def test_routing_lost_message(self, logging_mock):
)
raw = bytes((0x06, 0x10, 0x05, 0x31, 0x00, 0x0A, 0x04, 0x00, 0x00, 0x05))
routing.transport.data_received_callback(raw, ("192.168.1.2", 3671))
assert logging_mock.called_once_with(
logging_mock.assert_called_once_with(
"RoutingLostMessage received from %s - %s lost messages.",
"192.168.1.2",
5,
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py39, py310, py311, typing, lint, pylint
envlist = py39, py310, py311, py312, typing, lint, pylint
skip_missing_interpreters = True

[testenv]
Expand Down

0 comments on commit bc021cc

Please sign in to comment.