Merge pull request #189 from dbpunk-labs/feat/llama_new_action #558
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |