Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd490dc

Browse files
authored
CI: Add 3.15(t) CI for Windows and MacOS (numpy#31582)
1 parent 07a952d commit cd490dc

4 files changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
build_runner:
120120
- [ macos-15-intel, "macos_x86_64" ]
121121
- [ macos-14, "macos_arm64" ]
122-
version: ["3.12", "3.14t"]
122+
version: ["3.12", "3.15t-dev"]
123123

124124
steps:
125125
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup Python
3636
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3737
with:
38-
python-version: "3.14t"
38+
python-version: "3.15t-dev"
3939

4040
- name: Install build dependencies from PyPI
4141
run: |
@@ -131,7 +131,7 @@ jobs:
131131
include:
132132
- BLAS: 64
133133
TEST_MODE: full
134-
pyver: '3.14'
134+
pyver: '3.15-dev'
135135
- BLAS: 32
136136
TEST_MODE: fast
137137
pyver: '3.12'

numpy/_core/tests/examples/limited_api/meson.build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ if py.get_variable('Py_GIL_DISABLED', 0) == 0
6464
)
6565
endif
6666

67-
if py.language_version().version_compare('>=3.15')
67+
if (
68+
py.language_version().version_compare('>=3.15') and
69+
(host_machine.system() != 'windows' or (py.get_variable('Py_GIL_DISABLED', 0) == 1))
70+
)
6871
py.extension_module(
6972
'limited_api_opaque',
7073
'limited_api_opaque.c',

numpy/_core/tests/test_limited_api.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ def install_temp(tmpdir_factory):
8989
)
9090
@pytest.mark.xfail(
9191
NOGIL_BUILD,
92-
reason="Py_GIL_DISABLED builds do not currently support the limited API",
92+
reason="Py_GIL_DISABLED builds do not currently support abi3",
9393
)
94-
def test_limited_api(install_temp):
94+
def test_limited_api_abi3(install_temp):
9595
"""Test building a third-party C extension with the limited API
9696
and building a cython extension with the limited API
9797
"""
@@ -103,6 +103,11 @@ def test_limited_api(install_temp):
103103
@pytest.mark.skipif(
104104
sys.version_info < (3, 15), reason="opaque PyObject requires Python 3.15+"
105105
)
106+
@pytest.mark.skipif(
107+
sys.platform == "win32" and not sysconfig.get_config_var('Py_GIL_DISABLED'),
108+
reason=("Meson does not yet support building abi3t extensions on the "
109+
"GIL-enabled build")
110+
)
106111
def test_limited_opaque(install_temp):
107112
import limited_api_opaque
108113

0 commit comments

Comments
 (0)