From 114ed35e7633b75baefb936dc7cd2bb0f78b3235 Mon Sep 17 00:00:00 2001 From: Martin Vonk Date: Wed, 4 Oct 2023 10:32:21 +0200 Subject: [PATCH] add python 3.12 test suite --- .github/workflows/tests.yaml | 11 +++++++++++ pyproject.toml | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 0114a5f..f935833 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -7,6 +7,7 @@ on: jobs: test: runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.experimental }} strategy: fail-fast: false matrix: @@ -15,22 +16,32 @@ jobs: python: "3.10" os: ubuntu-latest toxenv: py310 + experimental: false - name: Test suite with py311-ubuntu python: "3.11" os: ubuntu-latest toxenv: py311 + experimental: false + - name: Test suite with py312-ubuntu + python: "3.12-dev" + os: ubuntu-latest + toxenv: py312 + experimental: true - name: Type check with mypy python: "3.10" os: ubuntu-latest toxenv: type + experimental: false - name: Formatting with black + isort python: "3.10" os: ubuntu-latest toxenv: format + experimental: false - name: Linting with flake8 + ruff python: "3.10" os: ubuntu-latest toxenv: lint + experimental: false name: ${{ matrix.name }} env: diff --git a/pyproject.toml b/pyproject.toml index c16a3b9..16fa028 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,7 +69,7 @@ pythonpath = ["src"] legacy_tox_ini = """ [tox] requires = tox>=4 - env_list = format, type, lint, py{310,311} + env_list = format, type, lint, py{310,311,312} [testenv] description = run unit tests @@ -82,8 +82,8 @@ legacy_tox_ini = """ basepython = python3.10 extras = formatting commands = - black src - isort src + black src --check --verbose + isort src --check [testenv:type] description = run type checks