2023-03-23 11:13:04 -06:00
|
|
|
name: Python Client Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- ".github/workflows/client-tests.yaml"
|
|
|
|
- "clients/python/**"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
run_tests:
|
2023-04-14 02:12:21 -06:00
|
|
|
runs-on: ubuntu-latest
|
2023-03-23 11:13:04 -06:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: 3.9
|
|
|
|
- name: Install
|
|
|
|
run: |
|
|
|
|
cd clients/python && pip install .
|
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
pip install pytest pytest-asyncio
|
2024-05-21 15:48:26 -06:00
|
|
|
export HUGGING_FACE_HUB_TOKEN=${{ secrets.HUGGING_FACE_HUB_TOKEN }}
|
2023-04-27 11:16:35 -06:00
|
|
|
make python-client-tests
|