Skip to content

Commit

Permalink
Include Python 3.12 in GHA (#743)
Browse files Browse the repository at this point in the history
* Include Python 3.12 in Nox's action

Add Python 3.12 to our supported pythons, as 3.12 is now stable.

* Include Python 3.12 in our CI checks

* Include Python 3.12 in our noxfile

* Formatting fix on the noxfile

A quick linting fix.
  • Loading branch information
DiddiLeija committed Oct 13, 2023
1 parent 274df9b commit 404c63b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, windows-latest, macos-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
python-versions:
description: "comma-separated list of python versions to install"
required: false
default: "3.7, 3.8, 3.9, 3.10, 3.11, pypy-3.7, pypy-3.8, pypy-3.9"
default: "3.7, 3.8, 3.9, 3.10, 3.11, 3.12, pypy-3.7, pypy-3.8, pypy-3.9"
branding:
icon: package
color: blue
Expand All @@ -15,7 +15,7 @@ runs:
- uses: actions/setup-python@v4
id: localpython
with:
python-version: "3.7 - 3.11"
python-version: "3.7 - 3.12"
update-environment: false

- name: "Validate input"
Expand Down
14 changes: 12 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
nox.options.sessions.append("conda_tests")


@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"])
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"])
def tests(session: nox.Session) -> None:
"""Run test suite with pytest."""
session.create_tmp() # Fixes permission errors on Windows
Expand Down Expand Up @@ -133,7 +133,17 @@ def _check_python_version(session: nox.Session) -> None:


@nox.session(
python=["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.7", "pypy3.8", "pypy3.9"]
python=[
"3.7",
"3.8",
"3.9",
"3.10",
"3.11",
"3.12",
"pypy3.7",
"pypy3.8",
"pypy3.9",
]
)
def github_actions_default_tests(session: nox.Session) -> None:
"""Check default versions installed by the nox GHA Action"""
Expand Down

0 comments on commit 404c63b

Please sign in to comment.