hf_text-generation-inference/.github/workflows/tests.yaml

44 lines
962 B
YAML
Raw Normal View History

2022-12-15 09:03:56 -07:00
name: Server Tests
on:
pull_request:
paths:
- "server/**"
- "proto/**"
- "router/**"
- "launcher/**"
2022-12-15 09:03:56 -07:00
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
2023-02-13 05:02:45 -07:00
- name: Install Protoc
uses: arduino/setup-protoc@v1
2022-12-15 09:03:56 -07:00
- name: Loading cache.
uses: actions/cache@v2
id: model_cache
with:
path: ~/.cache/huggingface/
key: models
- name: Install
2022-12-15 09:03:56 -07:00
run: |
make install
- name: Run server tests
2022-12-15 09:03:56 -07:00
run: |
pip install pytest
pytest -sv server/tests
- name: Run Rust tests
run: |
cargo test