diff --git a/.coveragerc b/.coveragerc index 8bdacb69..537f4767 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,6 +1,8 @@ [run] branch = True -source = src +source = + src + tests omit = */conftest.py */test_*_fuzz.py @@ -15,6 +17,7 @@ exclude_lines = pragma: no cover except ImportError: \# Python < + sys\.version_info < raise NotImplementedError raise TypeError\(f?"Unexpected assert False, @@ -23,4 +26,5 @@ exclude_lines = if TYPE_CHECKING: ^\s+\.\.\.$ ^\s+pass$ + \: \.\.\.$ ignore_errors = True diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f626f16c..c9ec84c5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3.9', 'pypy3.10'] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3.9', 'pypy3.10'] steps: - uses: actions/checkout@v4 @@ -21,7 +21,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install tox tox-gh-actions + pip install "tox>=3.28,<5" "tox-gh-actions>=2.12,<4" - name: Run unit tests with tox run: tox diff --git a/tox.ini b/tox.ini index 785aadc0..0e09ab95 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ isolated_build = true [gh-actions] python = - 3: py310 + 3: py311 3.6: py36 3.7: py37 3.8: py38 @@ -12,6 +12,7 @@ python = 3.10: py310 3.11: py311 3.12: py312 + pypy3: pypy39 pypy3.9: pypy39 pypy3.10: pypy310