From 560d35ef2f872605850374638927c5dd83f41f05 Mon Sep 17 00:00:00 2001 From: jurra Date: Fri, 28 Jul 2023 04:25:19 +0200 Subject: [PATCH] feature: workflow test setup for github actions --- .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 0000000..6f0fc27 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Run Tests + +on: + push: + branches: ['*', 'develop'] + pull_request: + branches: ['develop', 'main'] + +jobs: + test: + name: Run Tests + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: [3.7, 3.8, 3.9, 3.10] + + - name: Install dependencies + run: | + pip install poetry + poetry install + + - name: Run tests + run: poetry run pytest