From 1ad5cc4fb51d389213d285e44a099d001ad810f8 Mon Sep 17 00:00:00 2001 From: Duncan Brown Date: Fri, 1 Mar 2024 17:42:05 +0000 Subject: [PATCH] Run tests in CI --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..88a5f8ec --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Tests + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: install python + uses: actions/setup-python@v2 + with: + python-version: "3.12" + + - name: install poetry & deps + run: | + python -m pip install --upgrade poetry + poetry install --with development + + - name: pytest + run: poetry run pytest