diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 3a26f20..ef678a1 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -10,18 +10,18 @@ jobs:
fail-fast: false
max-parallel: 8
matrix:
- python-version: [3.7, 3.8, 3.9, "3.10", 3.11]
+ python-version: [3.7, 3.8, 3.9, "3.10", 3.11, 3.12]
os: [ubuntu-latest, windows-latest, macOS-latest]
include:
- - os: ubuntu-18.04
+ - os: ubuntu-20.04
python-version: 3.5
- - os: ubuntu-18.04
+ - os: ubuntu-20.04
python-version: 3.6
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v4
+ uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup build and test environment
@@ -58,12 +58,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- - name: Set up Python 3.11
+ - uses: actions/checkout@v4
+ - name: Set up Python 3.12
if: startsWith(github.event.ref, 'refs/tags')
- uses: actions/setup-python@v4
+ uses: actions/setup-python@v5
with:
- python-version: 3.11
+ python-version: 3.12
- name: Build Package
if: startsWith(github.event.ref, 'refs/tags')
run: |
diff --git a/README.md b/README.md
index 814766e..fa3e70e 100644
--- a/README.md
+++ b/README.md
@@ -79,7 +79,7 @@ print(cf.red('你好'))
## Usage
-**colorful** supports all major Python versions: *3.5*, *3.6* and *3.7*, *3.8*, *3.9*, *3.10*, *3.11*.
+**colorful** supports all major Python versions: *3.5*, *3.6* and *3.7*, *3.8*, *3.9*, *3.10*, *3.11*, *3.12*.
We recommend to use the latest version released on [PyPI](https://pypi.python.org/pypi/colorful):
```bash
diff --git a/setup.py b/setup.py
index 07f4f94..888f2d0 100644
--- a/setup.py
+++ b/setup.py
@@ -101,6 +101,7 @@ def read_version():
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
+ 'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy'
diff --git a/tox.ini b/tox.ini
index 16e2b3b..f520544 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = flake8,pypy,py35,py36,py37,py38,py39,py310,py311
+envlist = flake8,pypy,py35,py36,py37,py38,py39,py310,py311,py312
skip_missing_interpreters = True
[testenv]