-
Notifications
You must be signed in to change notification settings - Fork 3
73 lines (62 loc) · 2.25 KB
/
Copy pathci.yml
File metadata and controls
73 lines (62 loc) · 2.25 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
precommit:
name: precommit (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Emily is Apple-Silicon only. macos-14 is arm64 (M1).
os: [macos-14]
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Beam
uses: erlef/setup-beam@v1
with:
version-file: .tool-versions
version-type: strict
- name: Cache deps
uses: actions/cache@v4
with:
path: deps
key: deps-${{ runner.os }}-${{ hashFiles('mix.lock') }}
restore-keys: deps-${{ runner.os }}-
- name: Cache build
uses: actions/cache@v4
with:
path: _build
key: build-${{ runner.os }}-${{ hashFiles('mix.lock', 'c_src/**', 'Makefile', '.tool-versions', '.gitmodules') }}
restore-keys: build-${{ runner.os }}-
# The Bumblebee cache holds tiny-random HuggingFace fixtures
# downloaded by the conformance suite (~3 MB across 7 repos).
# Cached by conformance test content so new fixtures invalidate;
# restore-keys lets unrelated changes reuse the existing cache.
- name: Cache Bumblebee fixtures
uses: actions/cache@v4
with:
path: ~/Library/Caches/bumblebee
key: bumblebee-${{ runner.os }}-${{ hashFiles('test/emily/conformance/**') }}
restore-keys: bumblebee-${{ runner.os }}-
- run: mix deps.get
- run: mix precommit
# Conformance tests are excluded from the default suite because
# they require network access on a cold cache (see
# test/test_helper.exs). In CI we always want them green — a
# DistilBERT forward pass is the canonical integration signal
# that no Nx op on the transformer critical path has regressed.
- run: mix test --only conformance
# ASan CI deferred: requires OTP built with --enable-sanitizers=address
# (macOS SIP blocks DYLD_INSERT_LIBRARIES, and late-loaded libasan
# fails). See Makefile and RELEASE.md for details.