Skip to content

Commit

Permalink
Add support for Python 3.11 (#154)
Browse files Browse the repository at this point in the history
* Add support for Python 3.11

* Bump GitHub Actions
  • Loading branch information
hugovk authored Dec 3, 2022
1 parent c89c1bf commit bcb4c21
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ jobs:
strategy:
matrix:
os: [Windows, Ubuntu, MacOS]
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
include:
# Only run PyPy jobs, on Ubuntu.
- os: Ubuntu
python-version: pypy-3.7

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# Get Python to test against
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -42,7 +42,7 @@ jobs:
id: pip-cache-dir
run: echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache-dir.outputs.dir }}
key: pip-v1-${{ runner.os }}-${{ steps.date.outputs.date }}
Expand Down
12 changes: 6 additions & 6 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def _install_this_project_with_flit(session, *, extras=None, editable=False):
session.run("flit", "install", "--deps=production", *args, silent=True)


@nox.session(python="3.8")
@nox.session(python="3.11")
def lint(session):
session.install("pre-commit")

Expand All @@ -34,7 +34,7 @@ def lint(session):
session.run("pre-commit", "run", "--all-files", *args)


@nox.session(python=["3.7", "3.8", "3.9", "3.10", "pypy3"])
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3"])
def test(session):
_install_this_project_with_flit(session, editable=True)
session.install("-r", "tests/requirements.txt")
Expand All @@ -54,15 +54,15 @@ def test(session):
)


@nox.session(python=["3.7", "3.8", "3.9", "3.10", "pypy3"])
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3"])
def doctest(session):
session.install(".")
session.install("-r", "docs/requirements.txt")

session.run("sphinx-build", "-b", "doctest", "docs/", "build/doctest")


@nox.session(python="3.8", name="update-launchers")
@nox.session(python="3.11", name="update-launchers")
def update_launchers(session):
session.install("httpx")
session.run("python", "tools/update_launchers.py")
Expand All @@ -71,7 +71,7 @@ def update_launchers(session):
#
# Documentation
#
@nox.session(python="3.8")
@nox.session(python="3.11")
def docs(session):
_install_this_project_with_flit(session)
session.install("-r", "docs/requirements.txt")
Expand All @@ -80,7 +80,7 @@ def docs(session):
session.run("sphinx-build", "-W", "-b", "html", "docs/", "build/docs")


@nox.session(name="docs-live", python="3.8")
@nox.session(name="docs-live", python="3.11")
def docs_live(session):
_install_this_project_with_flit(session, editable=True)
session.install("-r", "docs/requirements.txt")
Expand Down

0 comments on commit bcb4c21

Please sign in to comment.