-
Notifications
You must be signed in to change notification settings - Fork 22
34 lines (34 loc) · 986 Bytes
/
test.yaml
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
name: AxonOnnx CI
on:
pull_request:
push:
branches:
- master
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Erlang & Elixir
uses: erlef/setup-beam@v1
with:
otp-version: '25.0'
elixir-version: '1.14.5'
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install ONNX
run: pip install numpy onnx onnxruntime
- name: Install transformers
run: pip install git+https://github.com/huggingface/transformers.git sentencepiece pillow torch tensorflow
- name: Install mix dependencies
run: mix deps.get
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
- name: Check formatting
run: mix format --check-formatted
- name: Run tests
run: MIX_ENV=test mix do compile --warnings-as-errors, test