Skip to content

Commit 16504a0

Browse files
committed
Add Python 3.12 testing to CI
I also updated setup-python action to v4 to support allow-prereleases, which is necessary to use unreleased versions of Python. (3.12 is at release candidate status so it's basically ready, but it's not technically a stable version yet.)
1 parent 0177033 commit 16504a0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# Not all Python versions are available for linux AND x64
1717
# https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
1818
os: ['ubuntu-latest']
19-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9']
19+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9']
2020
extra: ['', '-smtp']
2121
# The forced pytest versions correspond with the lower bounds in tox.ini
2222
pytest-version: ['', '--force-dep pytest==4', '--force-dep pytest==6.2.4']
@@ -34,14 +34,17 @@ jobs:
3434
pytest-version: '--force-dep pytest==4'
3535
- python-version: '3.11'
3636
pytest-version: '--force-dep pytest==4'
37+
- python-version: '3.12'
38+
pytest-version: '--force-dep pytest==4'
3739
fail-fast: false
3840

3941
steps:
4042
- uses: actions/checkout@v1
4143
- name: Set up Python ${{ matrix.python-version }}
42-
uses: actions/setup-python@v2
44+
uses: actions/setup-python@v4
4345
with:
4446
python-version: ${{ matrix.python-version }}
47+
allow-prereleases: true
4548
- name: Install dependencies
4649
run: |
4750
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)