From 6f8db9b7f3e56f0d8b16bac34cb096c1e7b3c179 Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Tue, 31 Oct 2023 15:14:37 -0700 Subject: [PATCH] Create tests.yml --- .github/workflows/tests.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..771edf56 --- /dev/null +++ b/.github/workflows/tests.yml @@ -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