Skip to content

Commit

Permalink
Add support for Python 3.11 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
drhagen authored Nov 8, 2022
1 parent 37cb4da commit cc162c9
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
test:
strategy:
matrix:
python-version: ['3.10']
python-version: ["3.10", "3.11"]
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
Expand Down
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import nox_poetry


@nox_poetry.session(python=["3.10"])
@nox_poetry.session(python=["3.10", "3.11"])
def test(session: nox_poetry.Session):
session.install(".", "pytest", "pytest-cov")
session.env["COVERAGE_FILE"] = f".coverage.{session.python}"
session.run("python", "-m", "pytest", "--cov", "serialite")


@nox_poetry.session(python=["3.10"])
@nox_poetry.session(python=["3.10", "3.11"])
def test_fastapi(session: nox_poetry.Session):
session.install(".[fastapi]", "pytest", "pytest-cov", "requests")
session.env["COVERAGE_FILE"] = f".coverage.fastapi.{session.python}"
session.run("python", "-m", "pytest", "--cov", "serialite", "tests/fastapi")


@nox_poetry.session(python=["3.10"])
@nox_poetry.session(python=["3.10", "3.11"])
def test_numpy(session: nox_poetry.Session):
session.install(".[numpy]", "pytest", "pytest-cov")
session.env["COVERAGE_FILE"] = f".coverage.numpy.{session.python}"
Expand Down
93 changes: 54 additions & 39 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pydantic = { version = "^1.9.1", optional = true }
numpy = { version = "^1.23.0", optional = true }

[tool.poetry.dev-dependencies]
nox_poetry = "^1.0.1"
nox_poetry = "^1.0.2"
pre-commit = "^2.19.0"

# Test
Expand Down

0 comments on commit cc162c9

Please sign in to comment.