From acbd0f97a7b8e1bd5fd3120d92b795c9d04d9252 Mon Sep 17 00:00:00 2001 From: Gabo Date: Mon, 16 Sep 2024 19:05:39 +0200 Subject: [PATCH] Add github actions to run tests --- .github/workflows/test.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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 0000000..a3567b5 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: 3.11 + + - name: Install venv + run: make install_venv + + - name: Lint with black + run: make check_format + + - name: Start service + run: make start_detached + + - name: Test with unittest + run: make test