From eb9a7e91f6e0366d6c7a01e4249fd40d3b6f0484 Mon Sep 17 00:00:00 2001 From: Tobias Urdin Date: Tue, 20 Oct 2026 13:29:24 +0200 Subject: [PATCH] Add Python 3.13 testing This adds testing for Python 3.13 so that we don't break existing support. Change-Id: Ibdfd1ae2ef082cd7e7d72c405be68004b1b4735f Signed-off-by: Tobias Urdin --- .github/workflows/python-gnocchiclient.yml | 1 + tools/install_deps.sh | 2 ++ tox.ini | 5 ++--- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-gnocchiclient.yml b/.github/workflows/python-gnocchiclient.yml index 46348b3..d7542e6 100644 --- a/.github/workflows/python-gnocchiclient.yml +++ b/.github/workflows/python-gnocchiclient.yml @@ -17,6 +17,7 @@ jobs: - py310 - py311 - py312 + - py313 steps: - uses: actions/checkout@v4 with: diff --git a/tools/install_deps.sh b/tools/install_deps.sh index 1a5740d..4cb7dbe 100755 --- a/tools/install_deps.sh +++ b/tools/install_deps.sh @@ -16,6 +16,8 @@ sudo apt-get update -y && sudo apt-get install -qy \ python3.11 \ python3.11-dev \ python3.11-distutils \ + python3.13 \ + python3.13-dev \ tox sudo rm -rf /var/lib/apt/lists/* diff --git a/tox.ini b/tox.ini index 61a88cc..cc495e4 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 3.1 -envlist = py310,py311,py312,pep8,docs-gnocchi-web +envlist = py310,py311,py312,py313,pep8,docs-gnocchi-web skipsdist = True [testenv] @@ -10,7 +10,7 @@ setenv = GNOCCHI_CLIENT_EXEC_DIR={envdir}/bin passenv = GNOCCHI_* deps = .[test,openstack] - git+https://github.com/gnocchixyz/gnocchi.git\#egg=gnocchi[postgresql,file] + gnocchi[postgresql,file] @ git+https://github.com/gnocchixyz/gnocchi.git pifpaf[gnocchi] # TODO(tobias-urdin): Skip benchmark tests since they just hang right now. commands = pifpaf run gnocchi -- pytest -k 'not test_benchmark_' {posargs:gnocchiclient/tests} @@ -26,7 +26,6 @@ deps = flake8 flake8-builtins flake8-docstrings flake8-rst-docstrings - flake8-logging-format doc8>=0.8.0 commands = flake8 doc8 --ignore-path doc/source/gnocchi.rst --ignore-path-errors doc/source/shell.rst;D000 doc/source