Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 31 additions & 3 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -34,12 +34,40 @@ jobs:
name: coverage-artifact-${{ matrix.python }}
path: .coverage-${{ matrix.python }}
include-hidden-files: true
unit-prerelease:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.13']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install nox
run: |
python -m pip install --upgrade setuptools pip wheel
python -m pip install nox
- name: Run unit tests
env:
COVERAGE_FILE: .coverage-prerelease-${{ matrix.python }}
run: |
nox -s unit_prerelease-${{ matrix.python }}
- name: Upload coverage results
uses: actions/upload-artifact@v4
with:
name: coverage-artifact-prerelease-${{ matrix.python }}
path: .coverage-prerelease-${{ matrix.python }}
include-hidden-files: true


unit-prerelease:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.12']
python: ['3.13']
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -55,7 +83,7 @@ jobs:
env:
COVERAGE_FILE: .coverage-prerelease-${{ matrix.python }}
run: |
nox -s unit_prerelease
nox -s unit_prerelease-${{ matrix.python }}
- name: Upload coverage results
uses: actions/upload-artifact@v4
with:
Expand Down
8 changes: 4 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

DEFAULT_PYTHON_VERSION = "3.8"

UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
UNIT_TEST_STANDARD_DEPENDENCIES = [
"mock",
"asyncmock",
Expand Down Expand Up @@ -270,13 +270,13 @@ def prerelease(session, tests_path):
)


@nox.session(python=UNIT_TEST_PYTHON_VERSIONS[-1])
@nox.session(python=UNIT_TEST_PYTHON_VERSIONS)
def compliance(session):
"""Run the compliance test suite."""
default(session, os.path.join("tests", "compliance"))


@nox.session(python=UNIT_TEST_PYTHON_VERSIONS[-1])
@nox.session(python=UNIT_TEST_PYTHON_VERSIONS)
def compliance_prerelease(session):
"""Run the compliance test suite with prerelease dependencies."""
prerelease(session, os.path.join("tests", "compliance"))
Expand All @@ -288,7 +288,7 @@ def unit(session):
default(session, os.path.join("tests", "unit"))


@nox.session(python=UNIT_TEST_PYTHON_VERSIONS[-1])
@nox.session(python=UNIT_TEST_PYTHON_VERSIONS)
def unit_prerelease(session):
"""Run the unit test suite with prerelease dependencies."""
prerelease(session, os.path.join("tests", "unit"))
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def readme():
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Topic :: Database :: Front-Ends",
],
Expand Down
Empty file added testing/constraints-3.13.txt
Empty file.
Loading