Skip to content

Commit 2084d86

Browse files
committed
ci: Enable testing on Python 3.13
1 parent 6ff7f40 commit 2084d86

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/tests.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ jobs:
8585
pyqt6-ver: '!=6.6.0'
8686
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
8787
pyside6-ver: '!=6.5.1'
88+
- os: ubuntu-22.04
89+
python-version: '3.13'
90+
# https://www.riverbankcomputing.com/pipermail/pyqt/2023-November/045606.html
91+
pyqt6-ver: '!=6.6.0'
92+
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
93+
pyside6-ver: '!=6.5.1'
8894
- os: macos-12 # This runner is on Intel chips.
8995
python-version: '3.10'
9096
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
@@ -93,6 +99,10 @@ jobs:
9399
python-version: '3.12'
94100
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
95101
pyside6-ver: '!=6.5.1'
102+
- os: macos-14 # This runner is on M1 (arm64) chips.
103+
python-version: '3.13'
104+
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
105+
pyside6-ver: '!=6.5.1'
96106

97107
steps:
98108
- uses: actions/checkout@v4
@@ -103,6 +113,7 @@ jobs:
103113
uses: actions/setup-python@v5
104114
with:
105115
python-version: ${{ matrix.python-version }}
116+
allow-prereleases: true
106117

107118
- name: Install OS dependencies
108119
run: |
@@ -249,11 +260,11 @@ jobs:
249260
python -c 'import PyQt5.QtCore' &&
250261
echo 'PyQt5 is available' ||
251262
echo 'PyQt5 is not available'
252-
# Even though PySide2 wheels can be installed on Python 3.12, they are broken and since PySide2 is
263+
# Even though PySide2 wheels can be installed on Python 3.12+, they are broken and since PySide2 is
253264
# deprecated, they are unlikely to be fixed. For the same deprecation reason, there are no wheels
254265
# on M1 macOS, so don't bother there either.
255266
if [[ "${{ matrix.os }}" != 'macos-14'
256-
&& "${{ matrix.python-version }}" != '3.12' ]]; then
267+
&& "${{ matrix.python-version }}" != '3.12' && "${{ matrix.python-version }}" != '3.13' ]]; then
257268
python -mpip install --upgrade pyside2${{ matrix.pyside2-ver }} &&
258269
python -c 'import PySide2.QtCore' &&
259270
echo 'PySide2 is available' ||

0 commit comments

Comments
 (0)