Skip to content

Commit c0ddbcf

Browse files
committed
Test on Python 3.12
1 parent 114b07e commit c0ddbcf

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# We don't test on Windows currently as it appears mocket may not
1515
# work there.
1616
platform: [ubuntu-latest, macos-latest]
17-
python-version: [3.7, 3.8, 3.9, "3.10", 3.11]
17+
python-version: [3.7, 3.8, 3.9, "3.10", 3.11, 3.12]
1818

1919
name: Python ${{ matrix.python-version }} on ${{ matrix.platform }}
2020
runs-on: ${{ matrix.platform }}
@@ -33,7 +33,7 @@ jobs:
3333
- name: Install dependencies
3434
run: |
3535
python -m pip install --upgrade pip
36-
pip install tox tox-gh-actions
36+
pip install setuptools tox tox-gh-actions
3737
3838
- name: Test with tox
3939
run: tox

setup.cfg

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ universal = 1
1212
disable = duplicate-code
1313

1414
[tox:tox]
15-
envlist = {py37,py38,py39,py310}-test,py310-{black,lint,flake8,mypy}
15+
envlist = {py37,py38,py39,py310,py311,py312}-test,py312-{black,lint,flake8,mypy}
1616

1717
[gh-actions]
1818
python =
1919
3.7: py37
2020
3.8: py38
2121
3.9: py39
22-
3.10: py310,black,lint,flake8,mypy
22+
3.10: py310
23+
3.11: py311
24+
3.12: py312,black,lint,flake8,mypy
2325

2426
[testenv:{py37,py38,py39,py310}-test]
2527
deps =
@@ -31,19 +33,19 @@ deps =
3133
charset-normalizer==2.1.1
3234
commands = pytest tests
3335

34-
[testenv:py310-black]
36+
[testenv:py312-black]
3537
deps = black
3638
commands = black --check --diff .
3739

38-
[testenv:py310-lint]
40+
[testenv:py312-lint]
3941
deps = pylint
4042
commands = pylint geoip2
4143

42-
[testenv:py310-flake8]
44+
[testenv:py312-flake8]
4345
deps = flake8
4446
commands = flake8 geoip2
4547

46-
[testenv:py310-mypy]
48+
[testenv:py312-mypy]
4749
deps =
4850
mypy
4951
types-requests

0 commit comments

Comments
 (0)