Skip to content

Commit 79ddbac

Browse files
committed
Run different number of examples on each platform
1 parent 47b524e commit 79ddbac

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/array-api.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,15 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
os:
32-
- ubuntu-latest
33-
- macos-latest
31+
include:
32+
# Different platforms are faster than others. We try to keep
33+
# the CI snappy at <= 2min.
34+
- os: ubuntu-latest
35+
max-examples-ci: 50
36+
- os: macos-latest
37+
max-examples-ci: 100
38+
- os: windows-latest
39+
max-examples-ci: 50
3440
steps:
3541
- name: Checkout branch
3642
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -46,7 +52,7 @@ jobs:
4652
run: pixi run arrayapitests --max-examples 1000 --hypothesis-seed=""
4753
- name: Run Array API tests (PR and main branch)
4854
if: ${{ github.event_name != 'schedule' }}
49-
run: pixi run arrayapitests -n 3
55+
run: pixi run arrayapitests --max-examples "$max-examples-ci"
5056
- name: Upload Array API tests report
5157
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5258
with:

0 commit comments

Comments
 (0)