@@ -201,16 +201,23 @@ jobs:
201201 uses : mxschmitt/action-tmate@v3
202202 if : env.RUN_TMATE
203203 test :
204- name : test source - py${{ matrix.python-version }}
204+ name : test source - py${{ matrix.python-version }} - ${{ matrix.platform }}
205205 needs :
206206 - diagnostics
207207 permissions :
208208 # actions/checkout needs this to fetch code
209209 contents : read
210- runs-on : ubuntu-latest
210+ runs-on : ${{ matrix.platform }}
211211 strategy :
212212 fail-fast : false
213213 matrix :
214+ # We test on all of the latest platforms available to use with GitHub-
215+ # hosted runners for public repositories.
216+ platform :
217+ - macos-latest
218+ - ubuntu-24.04-arm
219+ - ubuntu-latest
220+ - windows-latest
214221 python-version :
215222 - " 3.9"
216223 - " 3.10"
@@ -251,7 +258,8 @@ jobs:
251258 python-version : ${{ matrix.python-version }}
252259 - uses : actions/cache@v4
253260 env :
254- BASE_CACHE_KEY : ${{ github.job }}-${{ runner.os }}-\
261+ BASE_CACHE_KEY : ${{ github.job }}-\
262+ ${{ runner.os }}-${{ runner.arch }}-\
255263 py${{ steps.setup-python.outputs.python-version }}-
256264 with :
257265 path : ${{ env.PIP_CACHE_DIR }}
@@ -404,17 +412,24 @@ jobs:
404412 uses : mxschmitt/action-tmate@v3
405413 if : env.RUN_TMATE
406414 test-build :
407- name : test built wheel - py${{ matrix.python-version }}
415+ name : test built wheel - py${{ matrix.python-version }} - ${{ matrix.platform }}
408416 needs :
409417 - diagnostics
410418 - build
411419 permissions :
412420 # actions/checkout needs this to fetch code
413421 contents : read
414- runs-on : ubuntu-latest
422+ runs-on : ${{ matrix.platform }}
415423 strategy :
416424 fail-fast : false
417425 matrix :
426+ # We test on all of the latest platforms available to use with GitHub-
427+ # hosted runners for public repositories.
428+ platform :
429+ - macos-latest
430+ - ubuntu-24.04-arm
431+ - ubuntu-latest
432+ - windows-latest
418433 python-version :
419434 - " 3.9"
420435 - " 3.10"
@@ -455,7 +470,8 @@ jobs:
455470 python-version : ${{ matrix.python-version }}
456471 - uses : actions/cache@v4
457472 env :
458- BASE_CACHE_KEY : ${{ github.job }}-${{ runner.os }}-\
473+ BASE_CACHE_KEY : ${{ github.job }}-\
474+ ${{ runner.os }}-${{ runner.arch }}-\
459475 py${{ steps.setup-python.outputs.python-version }}-
460476 with :
461477 path : ${{ env.PIP_CACHE_DIR }}
0 commit comments