-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (50 loc) · 1.63 KB
/
array-api.yml
File metadata and controls
53 lines (50 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Array API tests
on:
# We would like to trigger for CI for any pull request action -
# both from QuantCo's branches as well as forks.
pull_request:
# In addition to pull requests, we want to run CI for pushes
# to the main branch and tags.
push:
branches:
- "*"
tags:
- "*"
# Automatically stop old builds on the same branch/PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
array-api-tests:
name: Array API test
timeout-minutes: 60
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
# Different platforms are faster than others. We try to keep
# the CI snappy at <= 2min.
- os: ubuntu-latest
max_examples_ci: 50
- os: macos-latest
max_examples_ci: 100
- os: windows-latest
max_examples_ci: 30
steps:
- name: Checkout branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
submodules: recursive
- name: Set up pixi
uses: prefix-dev/setup-pixi@1b2de7f3351f171c8b4dfeb558c639cb58ed4ec0
- name: Install repository
run: pixi run postinstall
- name: Run Array API tests (PR and main branch)
run: pixi run arrayapitests --max-examples ${{ matrix.max_examples_ci }}
- name: Upload Array API tests report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: array-api-tests-${{ matrix.os }}
path: array-api-tests-${{ matrix.os }}.json