Skip to content

Commit

Permalink
Enable all tests on 3.13 for Linux and macOS (#12119)
Browse files Browse the repository at this point in the history
  • Loading branch information
itamarst committed Aug 16, 2024
2 parents 9b9dbec + 967ad58 commit fd305d6
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 11 deletions.
42 changes: 31 additions & 11 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,7 @@ jobs:
- python-version: '3.11'

# Pre-release Python 3.13 with default settings.
# For now, no dependencies as cffi doesn't work on 3.13.
- python-version: '3.13-dev'
tox-env: 'nodeps-withcov-posix'
job-name: 'nodeps-3.13'
# FIXME:https://github.com/twisted/twisted/issues/12060
# Also add twisted.python
# FIXME:https://github.com/twisted/twisted/issues/12061
# Add full twisted.test
trial-target: 'twisted.conch twisted.cred twisted.internet twisted.logger twisted.mail twisted.names twisted.pair twisted.persisted twisted.protocols twisted.runner twisted.spread twisted.test.test_defer twisted.trial twisted.web twisted.words'
# Disable concurrency for now, since we get occasional segfaults and
# this helps debug them:
trial-args: '--reactor=default'

# Newest macOS and oldest Python (major) supported versions.
- python-version: '3.8'
Expand All @@ -162,6 +151,12 @@ jobs:
job-name: 'macos-12-default-tests'
tox-env: 'macos-withcov-alldeps'

# Pre-release Python 3.13 on macOS with default settings.
- python-version: '3.13-dev'
runs-on: 'macos-12'
tox-env: 'macos-withcov-alldeps'
job-name: 'macos-alldeps-3.13'

# Windows, minimum Python version with select reactor.
- python-version: '3.8'
runs-on: 'windows-2022'
Expand All @@ -180,6 +175,31 @@ jobs:
# Distributed trial is not yet suported on Windows.
trial-args: '--reactor=iocp'

# Prerelease Python 3.13 on Windows with select reactor.
# pywin32 doesn't have wheels for Python 3.13 yet.
# See https://github.com/mhammond/pywin32/issues/2294
# # Prerelease Python 3.13 on Windows with select reactor.
# - python-version: '3.13'
# runs-on: 'windows-2022'
# tox-env: 'alldeps-withcov-windows'
# job-name: 'win-3.13-tests-select'
# # Distributed trial is not yet suported on Windows so we overwrite
# # the default trial-args to remove concurrent runs and to
# # select a reactor.
# trial-args: '--reactor=select'

# Prerelease Python 3.13 on Windows with iocp reactor.
# pywin32 doesn't have wheels for Python 3.13 yet.
# See https://github.com/mhammond/pywin32/issues/2294
# - python-version: '3.13'
# runs-on: 'windows-2022'
# tox-env: 'alldeps-withcov-windows'
# job-name: 'win-3.13-tests-iocp'
# # Distributed trial is not yet suported on Windows so we overwrite
# # the default trial-args to remove concurrent runs and to
# # select a reactor.
# trial-args: '--reactor=iocp'

# On PYPY coverage is very slow (5min vs 30min) as there is no C
# extension.
# There is very little PYPY specific code so there is not much to
Expand Down
1 change: 1 addition & 0 deletions src/twisted/newsfragments/12060.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Enable trial tests for twisted.test on 3.13.
Empty file.
Empty file.

0 comments on commit fd305d6

Please sign in to comment.