-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 977 Bytes
/
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
name: Run Tests
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
pull-requests: read
jobs:
test:
strategy:
matrix:
include:
- { target: linux-64, os: ubuntu-latest }
- { target: osx-arm64, os: macos-latest }
- { target: linux-aarch64, os: ubuntu-24.04-arm }
fail-fast: false
runs-on: ${{ matrix.os }}
timeout-minutes: 5
defaults:
run:
shell: bash
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install magic
run: |
if [[ ${{ matrix.target }} == "linux-aarch64" ]]; then
bash scripts/install_magic_aarch64.sh
else
curl -ssL https://magic.modular.com | bash
fi
- name: Run tests
run: |
source $HOME/.bash_profile
magic run tests
magic run benchmarks
magic run examples