Skip to content

Commit

Permalink
ci(tests): update the targeted python versions for testing
Browse files Browse the repository at this point in the history
- Drop testing under python 2.7. It's no longer easy to access on the
  github runners. (Though we still test under pypy2.7.)

- Test under python 3.12
  • Loading branch information
dairiki committed Sep 3, 2024
1 parent bf154d4 commit e81b014
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ jobs:
fail-fast: false
matrix:
runner: [ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", pypy-2.7, pypy-3.7]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", pypy-2.7, pypy-3.8, pypy-3.10]
include:
- python-version: "2.7"
runner: ubuntu-20.04
- python-version: "3.6"
runner: ubuntu-20.04

Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ classifiers =
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: Implementation :: PyPy
Topic :: Software Development :: Libraries :: Python Modules

Expand All @@ -29,6 +30,7 @@ package_dir =
setup_requires =
setuptools >= 40
setuptools_scm
python_requires = >=2.7.0,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*

[bdist_wheel]
universal = 1
13 changes: 9 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[tox]
minversion = 3.7
envlist =
py27,py36,py37,py38,py39,py310,py311,pypy2,pypy3
py{27,36,37,38,39,310,311,312}
pypy{27,38,310}
cover-{clean,report}
lint
# necessary for python <= 3.6, pypy
Expand All @@ -17,8 +18,12 @@ python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
pypy-2.7: pypy2
pypy-3.7: pypy3
pypy-3.8: pypy38
pypy-3.10: pypy310

[testenv]
deps =
Expand All @@ -29,8 +34,8 @@ commands =
pytest --doctest-modules --doctest-glob=README.md README.md src

depends:
py27,py36,py37,py38,py39,py310,py311,pypy2,pypy3: cover-clean
cover-report: py27,py36,py37,py38,py39,py310,py311,pypy2,pypy3
{py,pypy}{27,36,37,38,39,310,311,312}: cover-clean
cover-report: {py,pypy}{27,36,37,38,39,310,311,312}

[testenv:cover-clean]
skip_install = true
Expand Down

0 comments on commit e81b014

Please sign in to comment.