From 0006f05aaa80734803638cee15a35046b3a84046 Mon Sep 17 00:00:00 2001 From: elijahbenizzy Date: Tue, 6 Feb 2024 11:07:48 -0800 Subject: [PATCH] Testing github actions --- .github/workflows/python-package.yml | 15 ++++++++++----- pyproject.toml | 6 ++++++ 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index b4bd522c0..9ac32efd6 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -10,8 +10,13 @@ on: branches: [ "main" ] jobs: - build: - + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - uses: pre-commit/action@v3.0.0 + test: runs-on: ubuntu-latest strategy: fail-fast: false @@ -26,7 +31,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 17b0c8871..8a3b12ad8 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"