-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.26 KB
/
python-sdk.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
52
53
54
name: Python SDK Tests
on:
push:
branches: [main]
paths:
- "python/**"
- "js-sdk-server/**"
pull_request:
branches: [main]
paths:
- "python/**"
- "js-sdk-server/**"
jobs:
test:
runs-on: warp-ubuntu-latest-x64-2x
strategy:
max-parallel: 1
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install dependencies
working-directory: python
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -e .
- name: Run tests
working-directory: python
env:
LIT_POLYGLOT_SDK_TEST_PRIVATE_KEY: ${{ secrets.LIT_POLYGLOT_SDK_TEST_PRIVATE_KEY }}
LIT_DEBUG_JS_SDK_SERVER: true
run: |
pytest tests/ -v
- name: Print server logs
if: always()
working-directory: python
run: |
if [ -f lit_python_sdk/server.log ]; then
echo "JS SDK Server log contents:"
cat lit_python_sdk/server.log
fi