Skip to content

Commit

Permalink
Sets up github actions
Browse files Browse the repository at this point in the history
This has two jobs -- pre-commit + tests. Tests run for 3.9, 3.10, 3.11,
3.12.
  • Loading branch information
elijahbenizzy committed Feb 6, 2024
1 parent f39c6ac commit e5c8d5a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@

name: Build Burr

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
on: [push, pull_request]

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
Expand All @@ -26,7 +27,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
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e5c8d5a

Please sign in to comment.