Skip to content

Commit

Permalink
Add support for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Sep 29, 2023
1 parent 0e033b0 commit eda6fa5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def doraise_py_compile(file, cfile=None, dfile=None, doraise=False):
"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",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit eda6fa5

Please sign in to comment.