From 8159d1702e6c03488932ce5cf26efb08b699fb2b Mon Sep 17 00:00:00 2001 From: Roman Rakus Date: Sat, 29 Mar 2025 20:03:45 +0100 Subject: [PATCH] feat: github workflow to run tests --- .github/workflows/python-app.yaml | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/python-app.yaml diff --git a/.github/workflows/python-app.yaml b/.github/workflows/python-app.yaml new file mode 100644 index 0000000..71df822 --- /dev/null +++ b/.github/workflows/python-app.yaml @@ -0,0 +1,36 @@ +# This workflow will run tests + +name: Python Application + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + test: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.12 + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install poetry + poetry install --with dev + + - name: Run linting + run: make lint + + - name: Run tests + run: poetry run pytest \ No newline at end of file