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

31 lines
638 B
YAML
Raw Normal View History

2022-12-15 09:03:56 -07:00
name: Server Tests
on:
pull_request:
paths:
- "server/**"
- "proto/**"
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: Loading cache.
uses: actions/cache@v2
id: model_cache
with:
path: ~/.cache/huggingface/
key: models
- name: Install server dependencies
run: |
make install-server
- name: Run tests
run: |
pip install pytest
pytest -sv server/tests