-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (41 loc) · 1.28 KB
/
test.yml
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
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test (${{ matrix.os }}, Node v${{ matrix.node }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-14, windows-latest]
node: [18, 20]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- uses: actions/setup-python@v5
if: matrix.os == 'macos-14'
with:
python-version: "3.10"
- name: Install distutils
run: python -m pip install setuptools
- name: Check OpenBLAS installed (linux)
if: matrix.os == 'ubuntu-latest'
run: ldconfig -p | grep openblas
continue-on-error: true
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
run_install: true
- name: Test
run: pnpm test