Skip to content

Commit

Permalink
Add 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
pt1243 committed Oct 6, 2023
1 parent ddada37 commit c5e0dad
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
include:
- {python-version: "3.8", toxenv: "py38"}
- {python-version: "3.9", toxenv: "py39"}
- {python-version: "3.10", toxenv: "py310"}
- {python-version: "3.11", toxenv: "py311"}
- {python-version: '3.8', toxenv: 'py38'}
- {python-version: '3.9', toxenv: 'py39'}
- {python-version: '3.10', toxenv: 'py310'}
- {python-version: '3.11', toxenv: 'py311'}
- {python-version: '3.12', toxenv: 'py312'}

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ omit = ["__init__.py"]
[tool.mypy]
exclude = [
'tests',
'docs',
]
warn_unused_configs = true
ignore_missing_imports = true

[tool.black]
line-length = 120
extend-exclude = '''
(
tests
| docs
)
'''
8 changes: 5 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{38,39,310,311}
py{38,39,310,311,312}
lint
type_check
format
Expand All @@ -11,14 +11,14 @@ isolated_build = true
[testenv]
description = Run unit tests
setenv =
py{38,39,310,311}: COVERAGE_FILE = .coverage.{envname}
py{38,39,310,311,312}: COVERAGE_FILE = .coverage.{envname}
deps =
pytest
pytest-cov
commands =
pytest
depends =
report: py{38,39,310,311}
report: py{38,39,310,311,312}

[testenv:lint]
description = Lint with flake8
Expand All @@ -32,6 +32,7 @@ description = Type check with mypy
skip_install = true
deps =
mypy
-r requirements.txt
commands = mypy .

[testenv:format]
Expand Down Expand Up @@ -59,3 +60,4 @@ exclude =
.tox
__pycache__
.venv
docs

0 comments on commit c5e0dad

Please sign in to comment.