-
Notifications
You must be signed in to change notification settings - Fork 18
41 lines (40 loc) · 945 Bytes
/
ci.yaml
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
name: backend testing
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
#runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests
run: |
WS_DIR=`pwd`
bash start_sandbox.sh
cd ${WS_DIR}/memory
pytest tests/*.py
cd ${WS_DIR}/agent
pytest tests/*.py
cd ${WS_DIR}/sdk
pytest tests/*.py
cd ${WS_DIR}/kernel
pytest tests/*.py
cd ${WS_DIR}/chat
pytest tests/*.py
- uses: actions/upload-artifact@v3
if: failure()
with:
name: log-artifact
path: |
sandbox/agent/*.log
sandbox/kernel/*.log