-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.08 KB
/
ci.yml
File metadata and controls
48 lines (38 loc) · 1.08 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
name: CI
on:
pull_request:
branches:
- '**' # Run on PRs to any branch
push:
branches:
- main # Run on direct commits to main only
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: npm ci
- name: Install calculator dependencies
run: python -m pip install --requirement amd_matrix_instruction_calculator/requirements.txt
- name: Verify WMMA layouts
run: python verification/verify_wmma_layouts.py --max-diffs 5
- name: Verify MFMA layouts
run: python verification/verify_mfma_layouts.py --arch all --max-diffs 5
- name: Run tests
run: npm test -- --run
- name: Build
run: npm run build