Create tests.yml

This commit is contained in:
Charles Packer
2023-10-31 15:14:37 -07:00
committed by GitHub
parent bcb9f7f3c7
commit 6f8db9b7f3

32
.github/workflows/tests.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: MemGPT tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10.10 # Set this to your Python version
- name: Install Poetry
run: |
pip install poetry
- name: Install dependencies using Poetry
run: |
poetry install
- name: Run tests with pytest
run: |
poetry run pytest -s tests