Skip to content

Commit 3f1b1cb

Browse files
committed
Start testing Python 3.14
1 parent 6551bce commit 3f1b1cb

3 files changed

Lines changed: 17 additions & 11 deletions

File tree

.github/workflows/test.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,11 @@ jobs:
4747
os: ubuntu-24.04-arm
4848
toxenv: py
4949
tox_extra_args: "-n 4"
50-
- name: Test suite with py311-ubuntu, mypyc-compiled
50+
- name: Test suite with py311-ubuntu
5151
python: '3.11'
5252
os: ubuntu-24.04-arm
5353
toxenv: py
5454
tox_extra_args: "-n 4"
55-
test_mypyc: true
5655
- name: Test suite with py312-ubuntu, mypyc-compiled
5756
python: '3.12'
5857
os: ubuntu-24.04-arm
@@ -66,13 +65,13 @@ jobs:
6665
tox_extra_args: "-n 4"
6766
test_mypyc: true
6867

69-
# - name: Test suite with py314-dev-ubuntu
70-
# python: '3.14-dev'
71-
# os: ubuntu-24.04-arm
72-
# toxenv: py
73-
# tox_extra_args: "-n 4"
74-
# allow_failure: true
75-
# test_mypyc: true
68+
- name: Test suite with py314-dev-ubuntu
69+
python: '3.14-dev'
70+
os: ubuntu-24.04-arm
71+
toxenv: py
72+
tox_extra_args: "-n 4"
73+
# allow_failure: true
74+
test_mypyc: true
7675

7776
- name: mypyc runtime tests with py39-macos
7877
python: '3.9.21'
@@ -115,6 +114,8 @@ jobs:
115114
FORCE_COLOR: ${{ !(startsWith(matrix.os, 'windows-') && startsWith(matrix.toxenv, 'py')) && 1 || 0 }}
116115
# Tox
117116
PY_COLORS: 1
117+
# Python -- Disable argparse help colors (3.14+)
118+
PYTHON_COLORS: 0
118119
# Mypy (see https://github.com/python/mypy/issues/7771)
119120
TERM: xterm-color
120121
MYPY_FORCE_COLOR: 1

mypyc/test-data/run-misc.test

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,10 @@ print(z)
969969
[case testCheckVersion]
970970
import sys
971971

972-
if sys.version_info[:2] == (3, 13):
972+
if sys.version_info[:2] == (3, 14):
973+
def version() -> int:
974+
return 14
975+
elif sys.version_info[:2] == (3, 13):
973976
def version() -> int:
974977
return 13
975978
elif sys.version_info[:2] == (3, 12):

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ envlist =
88
py311,
99
py312,
1010
py313,
11+
py314,
1112
docs,
1213
lint,
1314
type,
@@ -16,10 +17,11 @@ isolated_build = true
1617
[testenv]
1718
description = run the test driver with {basepython}
1819
passenv =
19-
PYTEST_XDIST_WORKER_COUNT
2020
PROGRAMDATA
2121
PROGRAMFILES(X86)
2222
PYTEST_ADDOPTS
23+
PYTEST_XDIST_WORKER_COUNT
24+
PYTHON_COLORS
2325
deps =
2426
-r test-requirements.txt
2527
# This is a bit of a hack, but ensures the faster-cache path is tested in CI

0 commit comments

Comments
 (0)