-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (47 loc) · 1.16 KB
/
sdk-build.yml
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
44
45
46
47
48
49
50
51
name: SDK Build
on:
schedule:
- cron: '0 12 * * *'
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
scheduled:
runs-on: ubuntu-latest
timeout-minutes: 95
strategy:
matrix:
python-version: [ '3.10' ]
services:
redis:
image: redis:latest
ports:
- 6379:6379
rabbitmq:
image: rabbitmq:latest
ports:
- 5672:5672
- 15672:15672
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install pytest dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install pytest-asyncio
- name: Change directory and install sdk dependencies
run: |
cd ./protollm_tools/sdk
pip install -r requirements.txt
pip install -e .
- name: Test sdk with pytest
run: |
cd ./protollm_tools/sdk
pytest -s ./tests -m ci