Skip to content

Commit

Permalink
chore: add Python 3.12 to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kiendang committed Nov 3, 2023
1 parent 536721c commit 77780eb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest]
exclude:
- os: windows-latest
python-version: "3.8"
- os: windows-latest
python-version: "3.9"
- os: windows-latest
python-version: "3.11"
python-version: "3.10"
- os: windows-latest
python-version: "3.12"

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
],
keywords="api graphql protocol rest",
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist =
pre-commit,mypy,
py{38,39,310,311}
py{38,39,310,311,312}
; requires = tox-conda

[gh-actions]
Expand All @@ -10,6 +10,7 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312

[testenv]
conda_channels = conda-forge
Expand All @@ -22,7 +23,7 @@ whitelist_externals =
python
commands =
pip install -U setuptools
py{38,39,310}: pytest tests {posargs}
py{38,39,310,312}: pytest tests {posargs}
py{311}: pytest tests --cov-report=term-missing --cov=graphql_server {posargs}

[testenv:pre-commit]
Expand Down

0 comments on commit 77780eb

Please sign in to comment.