-
Notifications
You must be signed in to change notification settings - Fork 1.1k
43 lines (41 loc) · 962 Bytes
/
tests.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
35
36
37
38
39
40
41
42
43
name: Server Tests
on:
pull_request:
paths:
- "server/**"
- "proto/**"
- "router/**"
- "launcher/**"
jobs:
run_tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.65.0
override: true
components: rustfmt, clippy
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Loading cache.
uses: actions/cache@v2
id: model_cache
with:
path: ~/.cache/huggingface/
key: models
- name: Install
run: |
make install
- name: Run server tests
run: |
pip install pytest
pytest -sv server/tests
- name: Run Rust tests
run: |
cargo test