diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 087d0b5470..df0b69b955 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -81,7 +81,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.8, 3.9, "3.10", "3.11"] + python-version: [3.8, 3.9, "3.10", "3.11", "3.12-dev"] outputs: python-key: ${{ steps.generate-python-key.outputs.key }} steps: @@ -138,7 +138,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.8, 3.9, "3.10", "3.11"] + python-version: [3.8, 3.9, "3.10", "3.11", "3.12-dev"] steps: - name: Set temp directory run: echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV diff --git a/pyproject.toml b/pyproject.toml index 9b3d42723c..e632219058 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,7 +63,11 @@ test = "pytest" addopts = '-m "not acceptance"' python_files = ["*test_*.py"] testpaths = ["tests"] -filterwarnings = "error" +filterwarnings = [ + 'error', + # Work around https://github.com/pytest-dev/pytest/issues/10977 for Python 3.12 + 'ignore:(ast\.Str|ast\.NameConstant|ast\.Num|Attribute s) is deprecated and will be removed.*:DeprecationWarning:', +] [tool.mypy] enable_error_code = "ignore-without-code"