Skip to content

Commit

Permalink
Add support for Python 3.11 and test on it (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Dec 2, 2022
1 parent 055d1ed commit ddd97d4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typeguard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: "3.10"
python-version: "3.11"
- name: Install dependencies
run: pip install nox
- name: Test with nox
Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import nox


@nox.session(python=["3.7", "3.8", "3.9", "3.10"])
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"])
@nox.parametrize("all_deps", [True, False])
def pytest(session, all_deps):
session.install(".[testing,other]" if all_deps else ".[testing]")
session.run("coverage", "erase")
session.run("pytest")


@nox.session(python="3.10")
@nox.session(python="3.11")
def pytest_typeguard(session):
session.install(".[testing,other]")
session.run("coverage", "erase")
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def get_version_and_cmdclass(package_name):
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
packages=find_packages("."),
install_requires=install_requires,
Expand Down

0 comments on commit ddd97d4

Please sign in to comment.