diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cec1b99..c6d4217 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,8 +7,10 @@ env: # Request colored output from CLI tools supporting it. Different tools # interpret the value differently. For some, just being set is sufficient. # For others, it must be a non-zero integer. For yet others, being set - # to a non-empty value is sufficient. - FORCE_COLOR: -106 + # to a non-empty value is sufficient. For tox, it must be one of + # , 0, 1, false, no, off, on, true, yes. The only enabling value + # in common is "1". + FORCE_COLOR: 1 # MyPy's color enforcement (must be a non-zero number) MYPY_FORCE_COLOR: -42 # Recognized by the `py` package, dependency of `pytest` (must be "1") @@ -40,8 +42,8 @@ jobs: - 2.7 - 3.6 - "3.7" - - "3.10" - "3.11" + - "3.12" # Workaround for actions/setup-python#508 dev: - -dev @@ -50,9 +52,16 @@ jobs: - macos-latest - windows-latest include: + - python: "3.8" + platform: ubuntu-latest + - python: "3.9" + platform: ubuntu-latest + - python: "3.10" + platform: ubuntu-latest - python: pypy3.9 platform: ubuntu-latest runs-on: ${{ matrix.platform }} + continue-on-error: ${{ matrix.python == '3.12' }} steps: - uses: actions/checkout@v3 - name: Setup Python diff --git a/docs/conf.py b/docs/conf.py index fa741a8..c204339 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- - extensions = [ 'sphinx.ext.autodoc', 'jaraco.packaging.sphinx', diff --git a/pytest.ini b/pytest.ini index 80e98cc..2c2817b 100644 --- a/pytest.ini +++ b/pytest.ini @@ -3,6 +3,9 @@ norecursedirs=dist build .tox .eggs addopts=--doctest-modules doctest_optionflags=ALLOW_UNICODE ELLIPSIS filterwarnings= + # Ensure ResourceWarnings are emitted + default::ResourceWarning + # Suppress deprecation warning in flake8 ignore:SelectableGroups dict interface is deprecated::flake8 diff --git a/setup.cfg b/setup.cfg index 0577001..ce063b3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -35,7 +35,10 @@ testing = # upstream pytest >= 4.6 pytest-checkdocs >= 2.4; python_version >= "3.6" - pytest-flake8; python_version >= "3" + pytest-flake8; \ + python_version >= "3" + # workaround for tholo/pytest-flake8#87 + python_version < "3.12" \ # workaround for tholo/pytest-flake8#87 flake8 < 5 # python_implementation: workaround for jaraco/skeleton#22