Add support for Python 3.12

This commit is contained in:
Hugo van Kemenade 2023-09-15 21:55:37 +03:00
parent 0e033b0e5c
commit eda6fa5cfb
3 changed files with 9 additions and 6 deletions

View File

@ -33,20 +33,22 @@ jobs:
runs-on: ${{ matrix.platform }}
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.10"]
platform: [ubuntu-latest, macos-latest, windows-latest]
exclude: # Only test on the latest supported stable Python on macOS and Windows.
python-version: ["3.8", "3.11", "3.12"]
platform: [ubuntu-latest]
include: # Only test on the latest supported stable Python on macOS and Windows.
- platform: macos-latest
python-version: 3.8
python-version: 3.11
- platform: windows-latest
python-version: 3.8
python-version: 3.11
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install packages
run: pip install tox coverage
- name: Run Tox

View File

@ -165,6 +165,7 @@ classifiers = {
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3",
"Topic :: Text Processing :: Fonts",
"Topic :: Multimedia :: Graphics",

View File

@ -1,6 +1,6 @@
[tox]
minversion = 3.0
envlist = lint, py3{8,9,10,11}-cov, htmlcov
envlist = lint, py3{8,9,10,11,12}-cov, htmlcov
skip_missing_interpreters=true
[testenv]