Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Sets up github actions

elijahbenizzy846a2061ef66
diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml
index b4bd522c..28990ea2 100644
--- a/.github/workflows/python-package.yml
+++ b/.github/workflows/python-package.yml
@@ -5,13 +5,20 @@ name: Build Burr
on:
push:
- branches: [ "main" ]
+ branches:
+ - main # Triggers the workflow on push events to the main branch
pull_request:
- branches: [ "main" ]
+ # Triggers the workflow on pull request events for any branch
+ types: [opened, synchronize, reopened]
jobs:
- build:
-
+ pre-commit:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-python@v3
+ - uses: pre-commit/[email protected]
+ test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
@@ -26,7 +33,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
- python -m pip install -e .
- - name: Run test
+ python -m pip install -e ".[tests]"
+ - name: Run tests
run: |
- python test.py
+ python -m pytest tests
diff --git a/pyproject.toml b/pyproject.toml
index f20664e7..61a87fb9 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -31,11 +31,17 @@ streamlit = [
"streamlit"
]
+tests = [
+ "pytest",
+ "pytest-asyncio",
+]
+
[tool.poetry.packages]
include = [
{ include = "burr", from = "." },
]
+
[project.urls]
Homepage = "https://github.com/dagworks-inc/burr"
Documentation = "https://github.com/dagworks-inc/burr"