@@ -69,35 +69,19 @@ jobs:
69
69
path : ./wheelhouse/*.whl
70
70
name : wheels-${{ runner.os }}-${{ matrix.platform_id }}
71
71
72
- test_wheels :
73
- name : Test wheels on ${{ matrix.os }}- ${{ matrix.platform_id }}- ${{ matrix.python-version }}
72
+ test_wheels_win :
73
+ name : Test wheels on Windows - ${{ matrix.platform_id }} ( ${{ matrix.python-version }})
74
74
needs : [build_wheels]
75
- runs-on : ${{ matrix.os }}
75
+ runs-on : windows-latest
76
76
strategy :
77
77
fail-fast : false
78
78
matrix :
79
+ architecture : [x64, x86]
79
80
python-version : ['3.9', '3.10', '3.11', '3.12', '3.13']
80
- os : [windows-2022, macos-13, macos-14]
81
- include :
82
- - os : windows-2022
83
- platform_id : win_amd64
84
- architecture : x64
85
- - os : windows-2022
86
- platform_id : win32
87
- architecture : x86
88
- - os : macos-13
89
- platform_id : macosx_x86_64
90
- architecture : x86_64
91
- - os : macos-14
92
- platform_id : macosx_arm64
93
- architecture : arm64
94
-
95
- # include: [
96
- # {os: windows-2022, platform_id: win_amd64, architecture: x64},
97
- # {os: windows-2022, platform_id: win32, architecture: x86},
98
- # {os: macos-13, platform_id: macosx_x86_64, architecture: x86_64},
99
- # {os: macos-14, platform_id: macosx_arm64, architecture: arm64}
100
- # ]
81
+ include : [
82
+ {platform_id: win_amd64, architecture: x64},
83
+ {platform_id: win32, architecture: x86},
84
+ ]
101
85
steps :
102
86
- uses : actions/checkout@v4
103
87
@@ -106,6 +90,48 @@ jobs:
106
90
with :
107
91
python-version : ${{ matrix.python-version }}
108
92
architecture : ${{ matrix.architecture }}
93
+ allow-prereleases : true
94
+
95
+ - uses : actions/download-artifact@v3
96
+ with :
97
+ name : wheels-${{ runner.os }}-${{ matrix.platform_id }}
98
+ path : ~/wheelhouse
99
+
100
+ - name : Install test dependencies
101
+ run : |
102
+ pip install pytest pytest-cov
103
+
104
+ - name : Install wheels
105
+ run : |
106
+ pip install --no-index --find-links ~/wheelhouse ManimPango
107
+
108
+ - name : Run tests
109
+ shell : bash
110
+ run : |
111
+ bash packing/test_wheels.sh $(pwd)
112
+
113
+ test_wheels_mac :
114
+ name : Test wheels on macOS - ${{ matrix.platform_id }} (${{ matrix.python-version }})
115
+ needs : [build_wheels]
116
+ runs-on : ${{ matrix.os }}
117
+ strategy :
118
+ fail-fast : false
119
+ matrix :
120
+ architecture : [x64, arm64]
121
+ python-version : ['3.9', '3.10', '3.11', '3.12', '3.13']
122
+ include : [
123
+ {platform_id: macosx_x86_64, architecture: x64, os: macos-13},
124
+ {platform_id: macosx_arm64, architecture: arm64, os: macos-14},
125
+ ]
126
+ steps :
127
+ - uses : actions/checkout@v4
128
+
129
+ - uses : actions/setup-python@v5
130
+ name : Install Python
131
+ with :
132
+ python-version : ${{ matrix.python-version }}
133
+ architecture : ${{ matrix.architecture == 'arm64' && null || matrix.architecture }}
134
+ allow-prereleases : true
109
135
110
136
- uses : actions/download-artifact@v3
111
137
with :
@@ -126,7 +152,7 @@ jobs:
126
152
bash packing/test_wheels.sh $(pwd)
127
153
128
154
publish_wheels :
129
- needs : [test_wheels ]
155
+ needs : [test_wheels_mac, test_wheels_win ]
130
156
name : Upload wheels
131
157
runs-on : ubuntu-latest
132
158
if : github.event_name== 'release'
@@ -217,7 +243,7 @@ jobs:
217
243
asset_content_type : application/gzip
218
244
219
245
success :
220
- needs : [test_wheels ]
246
+ needs : [test_wheels_win, test_wheels_mac ]
221
247
runs-on : ubuntu-latest
222
248
name : Building and testing of wheels success
223
249
steps :
0 commit comments