From 324d9861d8b6427fb2ebd16650f1a03d36bec460 Mon Sep 17 00:00:00 2001 From: Dariusz Duda Date: Fri, 20 Dec 2024 06:47:42 -0500 Subject: [PATCH] test: run tests on 3.12 by default Signed-off-by: Dariusz Duda --- .github/workflows/tests.yaml | 4 +--- tox.ini | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index e346ec5..5419f7f 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -52,10 +52,8 @@ jobs: with: python-version: | 3.8 - 3.9 3.10 - 3.11 - 3.12-dev + 3.12 - name: Configure environment run: | echo "::group::pip install" diff --git a/tox.ini b/tox.ini index 408438b..c23c786 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] env_list = # Environments to run when called with no parameters. lint-{ruff,pyright,shellcheck,codespell,docs} - test-{py38,py310,py311} + test-{py38,py310,py312} minversion = 4.5 # Tox will use these requirements to bootstrap a venv if necessary. # tox-igore-env-name-mismatch allows us to have one virtualenv for all linting. @@ -36,7 +36,7 @@ commands_pre = mkdir -p results base = testenv, test description = Run unit tests with pytest labels = - py38, py310, py311: tests, unit-tests + py38, py310, py312: tests, unit-tests commands = # NOTE: we use `coverage` directly here instead of pytest-cov because the loading of the # pytest plugin provided by craft-cli means that some code gets imported *before* @@ -48,7 +48,7 @@ commands = base = testenv, test description = Run integration tests with pytest labels = - py38, py310, py311: tests, integration-tests + py38, py310, py312: tests, integration-tests commands = # NOTE: we use `coverage` directly here instead of pytest-cov because the loading of the # pytest plugin provided by craft-cli means that some code gets imported *before*