File tree Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -390,13 +390,11 @@ jobs:
390
390
- python : ' 3.9' # We support running on cython 2 and 3 for 3.9
391
391
cython : ' <3' # cython 2
392
392
- python : ' 3.9'
393
- # cython 3.1.0 broke stuff https://github.com/cython/cython/issues/6865
394
- cython : ' >=3,<3.1' # cython 3 (or greater)
393
+ cython : ' >=3' # cython 3 (or greater)
395
394
- python : ' 3.11' # 3.11 is the last version Cy2 supports
396
395
cython : ' <3' # cython 2
397
396
- python : ' 3.13' # We support running cython3 on 3.13
398
- # cython 3.1.0 broke stuff https://github.com/cython/cython/issues/6865
399
- cython : ' >=3,<3.1' # cython 3 (or greater)
397
+ cython : ' >=3' # cython 3 (or greater)
400
398
steps :
401
399
- name : Retrieve the project source from an sdist inside the GHA artifact
402
400
uses : re-actors/checkout-python-sdist@release/v2
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ commands =
53
53
description = " Run cython tests."
54
54
deps =
55
55
# cython 3.1.0 broke stuff https://github.com/cython/cython/issues/6865
56
- cython: cython<3.1.0
56
+ cython: cython
57
57
cython2: cython<3
58
58
setuptools ; python_version >= '3.12'
59
59
commands_pre =
@@ -63,6 +63,26 @@ commands_pre =
63
63
commands =
64
64
python -m tests.cython.run_test_cython
65
65
66
+ [testenv:cov-cython]
67
+ deps =
68
+ setuptools
69
+ cython
70
+ set_env =
71
+ CFLAGS = -DCYTHON_TRACE_NOGIL =1A
72
+ allowlist_externals =
73
+ sed
74
+ cp
75
+ commands_pre =
76
+ python --version
77
+ cython --version
78
+ cp pyproject.toml {temp_dir}/
79
+ sed -i " s/plugins\ =\ \\[\\]/plugins = [\" Cython.Coverage\" ]/" {temp_dir}/pyproject.toml
80
+ cythonize --inplace -X linetrace =True tests/cython/test_cython.pyx
81
+ commands =
82
+ coverage run -m tests.cython.run_test_cython --rcfile ={temp_dir}/pyproject.toml
83
+ coverage combine
84
+ coverage report
85
+
66
86
[testenv:gen_exports]
67
87
description = " Run gen_exports.py, regenerating code for public API wrappers."
68
88
deps =
You can’t perform that action at this time.
0 commit comments