@@ -91,11 +91,13 @@ jobs:
9191
9292
9393 build_wheel_windows :
94- name : Build wheel on Windows 64bit
94+ name : Build wheel on Windows ${{ matrix.arch }}
9595 needs : build
9696 runs-on : windows-2019
9797 strategy :
9898 fail-fast : false
99+ matrix :
100+ arch : [x64, x86]
99101 steps :
100102 - uses : actions/checkout@v2
101103 with :
@@ -107,29 +109,35 @@ jobs:
107109 uses : actions/setup-python@v2
108110 with :
109111 python-version : 3.6
112+ architecture : ${{ matrix.arch }}
110113
111114 - name : Setup Python 3.7
112115 uses : actions/setup-python@v2
113116 with :
114117 python-version : 3.7
118+ architecture : ${{ matrix.arch }}
115119
116120 - name : Setup Python 3.8
117121 uses : actions/setup-python@v2
118122 with :
119123 python-version : 3.8
124+ architecture : ${{ matrix.arch }}
120125
121126 - name : Setup Python 3.9
122127 uses : actions/setup-python@v2
123128 with :
124129 python-version : 3.9
130+ architecture : ${{ matrix.arch }}
125131
126132 - name : Setup Python 3.10
127133 uses : actions/setup-python@v2
128134 with :
129135 python-version : ' 3.10'
136+ architecture : ${{ matrix.arch }}
130137
131138 - name : Build wheel
132- run : .\scripts\build-wheels-windows.cmd
139+ run : .\scripts\build-wheels-windows.cmd ${{ matrix.arch }}
140+
133141 - uses : actions/upload-artifact@v2
134142 with :
135143 path : .\dist
@@ -143,16 +151,24 @@ jobs:
143151 strategy :
144152 fail-fast : false
145153 matrix :
146- os : [macos-latest, ubuntu-latest, windows-latest]
154+ os : [macos-latest, ubuntu-latest, windows-latest, windows-2019 ]
147155 python : ['3.6', '3.7', '3.8', '3.9', '3.10']
148156 steps :
149157 - name : Checkout
150158 uses : actions/checkout@v2
151159
152160 - name : Setup Python ${{ matrix.python }}
161+ if : ${{ matrix.os != 'windows-2019' }}
162+ uses : actions/setup-python@v2
163+ with :
164+ python-version : ${{ matrix.python }}
165+
166+ - name : Setup Python ${{ matrix.python }}
167+ if : ${{ matrix.os == 'windows-2019' }}
153168 uses : actions/setup-python@v2
154169 with :
155170 python-version : ${{ matrix.python }}
171+ architecture : x86
156172
157173 - name : Download artifacts
158174 uses : actions/download-artifact@v2
@@ -172,10 +188,24 @@ jobs:
172188 run : |
173189 python -m pip install .\artifact\$(dir artifact -Name | findstr mrob-.*-win_amd64.whl) numpy pytest
174190
175- - name : " Python unit tests"
191+ - name : Install mrob & numpy on Windows 32bit
192+ if : ${{ matrix.os == 'windows-2019' }}
193+ run : |
194+ python -m pip install .\artifact\$(dir artifact -Name | findstr mrob-.*-win32.whl) numpy
195+
196+ - name : Python unit tests
197+ if : ${{ matrix.os != 'windows-2019' }}
176198 run : |
177199 python -m pytest mrobpy
178200
201+ - name : Python unit tests
202+ if : ${{ matrix.os == 'windows-2019' }}
203+ run : |
204+ $files = Get-ChildItem -Path python_examples -Include *.py
205+ foreach ($f in $files){
206+ python $f.FullName || EXIT /B !ERRORLEVEL!
207+ }
208+
179209
180210 publish_pypi :
181211 name : Publish macOS wheel to PyPI
0 commit comments