-
Notifications
You must be signed in to change notification settings - Fork 1.5k
107 lines (101 loc) · 2.45 KB
/
Copy pathpython_wheel_build.yml
File metadata and controls
107 lines (101 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: 'ROOT Python wheels'
on:
workflow_dispatch:
inputs:
major:
type: choice
description: Major
options:
- 6
- 7
- 8
required: true
default: 6
minor:
type: choice
description: Minor
options:
- 26
- 28
- 30
- 32
- 36
- 38
- 40
- 42
- 44
- 46
- 48
required: true
default: 40
patch:
type: choice
description: Patch
options:
- "00"
- "02"
- "04"
- "06"
- "08"
- "10"
- "12"
- "14"
- "16"
- "18"
- "20"
- "22"
- "24"
- "26"
- "28"
- "30"
required: true
default: "00"
pull_request:
types: [opened, synchronize, reopened]
jobs:
Build_Wheel:
runs-on: macos-26
strategy:
fail-fast: false
matrix:
target: [cp310-macosx_arm64, cp311-macosx_arm64, cp312-macosx_arm64, cp313-macosx_arm64, cp314-macosx_arm64]
name: ${{ matrix.target }}
steps:
- uses: actions/checkout@v6
- uses: ./.github/workflows/cibuildwheel-impl
env:
MACOSX_DEPLOYMENT_TARGET: 26.5
with:
build-tag: ${{ matrix.target }}
Test_Wheels:
needs: Build_Wheel
runs-on: macos-26
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
name: test-wheel-cp${{ matrix.python-version }}
steps:
- uses: actions/checkout@v6
- name: Download produced wheels
uses: actions/download-artifact@v4
with:
path: wheels
merge-multiple: true
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install produced wheel
run: |
ls -R wheels
PY_VER=$(python -c "import sys; print(f'cp{sys.version_info.major}{sys.version_info.minor}')")
WHEEL=$(ls wheels/*${PY_VER}*macosx*.whl | head -n 1)
echo "Python version: ${PY_VER}, installing wheel: ${WHEEL}"
pip install "$WHEEL"
- name: Install tutorials dependencies
run: |
python -m pip install --no-cache-dir -r test/wheels/requirements-ci.txt
- name: Run tutorials
run: |
pytest -vv --verbosity="4" -rF test/wheels