Skip to content

Commit

Permalink
chore: add 3.13 classifier and test
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Oct 5, 2024
1 parent 4a33ac4 commit 08098d1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.8', '3.10', '3.12']
python-version: ['3.8', '3.10', '3.13']
include:
- {os: macos-13, python-version: '3.9'}
- {os: windows-latest, python-version: '3.8'}
Expand All @@ -48,6 +48,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- uses: astral-sh/setup-uv@v3

Expand Down
14 changes: 8 additions & 6 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@

import nox

nox.options.sessions = ["lint", "pylint", "tests"]

PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]

nox.needs_version = ">=2024.4.15"
nox.options.default_venv_backend = "uv|virtualenv"

ALL_PYTHONS = [
c.split()[-1]
for c in nox.project.load_toml("pyproject.toml")["project"]["classifiers"]
if c.startswith("Programming Language :: Python :: 3.")
]


@nox.session
def lint(session):
Expand All @@ -29,13 +31,13 @@ def pylint(session: nox.Session) -> None:
session.run("pylint", "src", *session.posargs)


@nox.session(python=PYTHON_VERSIONS)
@nox.session(python=ALL_PYTHONS)
def tests(session):
session.install("-y.[test]")
session.run("pytest", *session.posargs)


@nox.session
@nox.session(default=False)
def build(session):
"""
Build an SDist and wheel.
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
]
dependencies = [
Expand Down

0 comments on commit 08098d1

Please sign in to comment.