From c18777656c4f3cec92814db281042a568cdf338c Mon Sep 17 00:00:00 2001 From: edraft Date: Fri, 16 Jan 2026 16:07:09 +0100 Subject: [PATCH] Added test action --- .gitea/workflows/test_before_merge.yaml | 19 ++++++++++++++++++- pyproject.toml | 18 +++++++++++++++++- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/test_before_merge.yaml b/.gitea/workflows/test_before_merge.yaml index 65903fed..aa52e8c3 100644 --- a/.gitea/workflows/test_before_merge.yaml +++ b/.gitea/workflows/test_before_merge.yaml @@ -23,4 +23,21 @@ jobs: run: python3.12 -m pip install black - name: Checking black - run: python3.12 -m black src --check \ No newline at end of file + run: python3.12 -m black src --check + + test: + runs-on: [ runner ] + container: git.sh-edraft.de/sh-edraft.de/act-runner:latest + steps: + - name: Clone Repository + uses: https://github.com/actions/checkout@v3 + with: + token: ${{ secrets.CI_ACCESS_TOKEN }} + + - name: Setting up Python 3.12 + run: | + python3.12 -m pip install -r src/requirements-dev.txt + + - name: Testing with pytest + run: | + python3.12 -m pytest \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index e34796ec..1c9e3372 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,18 @@ [tool.black] -line-length = 120 \ No newline at end of file +line-length = 120 + +[tool.pytest.ini_options] +pythonpath = [ + "src/api", + "src/application", + "src/auth", + "src/cli", + "src/core", + "src/database", + "src/dependency", + "src/graphql", + "src/mail", + "src/query", + "src/translation" +] +testpaths = ["test"] \ No newline at end of file