Added test action
Some checks failed
Test before pr merge / test (pull_request) Failing after 4s
Test before pr merge / test-lint (pull_request) Successful in 15s

This commit is contained in:
2026-01-16 16:07:09 +01:00
parent c8de1284fb
commit c18777656c
2 changed files with 35 additions and 2 deletions

View File

@@ -23,4 +23,21 @@ jobs:
run: python3.12 -m pip install black run: python3.12 -m pip install black
- name: Checking black - name: Checking black
run: python3.12 -m black src --check 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

View File

@@ -1,2 +1,18 @@
[tool.black] [tool.black]
line-length = 120 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"]