Skip to content

Commit

Permalink
chore: add 3.13 classifier and test (#468)
Browse files Browse the repository at this point in the history
* chore: add 3.13 classifier and test

Signed-off-by: Henry Schreiner <[email protected]>

* Update ci.yml

---------

Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii authored Oct 7, 2024
1 parent 3d3e69d commit 0ebc493
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ 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: macos-latest, python-version: '3.13'}
- {os: windows-latest, python-version: '3.8'}
- {os: windows-latest, python-version: '3.11'}
- {os: windows-latest, python-version: '3.13'}

steps:
- uses: actions/checkout@v4
Expand All @@ -48,6 +49,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 0ebc493

Please sign in to comment.