Skip to content

Commit 826342a

Browse files
committed
CI: test all the wheels generated
1 parent 895dfea commit 826342a

File tree

1 file changed

+52
-26
lines changed

1 file changed

+52
-26
lines changed

.github/workflows/build.yml

Lines changed: 52 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -69,35 +69,19 @@ jobs:
6969
path: ./wheelhouse/*.whl
7070
name: wheels-${{ runner.os }}-${{ matrix.platform_id }}
7171

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 }})
7474
needs: [build_wheels]
75-
runs-on: ${{ matrix.os }}
75+
runs-on: windows-latest
7676
strategy:
7777
fail-fast: false
7878
matrix:
79+
architecture: [x64, x86]
7980
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+
]
10185
steps:
10286
- uses: actions/checkout@v4
10387

@@ -106,6 +90,48 @@ jobs:
10690
with:
10791
python-version: ${{ matrix.python-version }}
10892
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
109135

110136
- uses: actions/download-artifact@v3
111137
with:
@@ -126,7 +152,7 @@ jobs:
126152
bash packing/test_wheels.sh $(pwd)
127153
128154
publish_wheels:
129-
needs: [test_wheels]
155+
needs: [test_wheels_mac, test_wheels_win]
130156
name: Upload wheels
131157
runs-on: ubuntu-latest
132158
if: github.event_name== 'release'
@@ -217,7 +243,7 @@ jobs:
217243
asset_content_type: application/gzip
218244

219245
success:
220-
needs: [test_wheels]
246+
needs: [test_wheels_win, test_wheels_mac]
221247
runs-on: ubuntu-latest
222248
name: Building and testing of wheels success
223249
steps:

0 commit comments

Comments
 (0)