Add test runner
All checks were successful
Run Tests / run-tests (push) Successful in 31s

This commit is contained in:
2026-04-25 10:54:55 +02:00
parent d84a0eed3f
commit 545841561f
3 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
name: Run Tests
on:
push: {}
env:
RUNNER_TOOL_CACHE: /toolcache
jobs:
run-tests:
runs-on: python
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }}
- name: Install poetry
run: |
python3 -m pip install poetry==2.3.4
- name: Install the project dependencies
run: |
python3 -m poetry install
python3 -m poetry env info
- name: Run the automated tests
run: |
python3 -m poetry run python -m pytest tests

View File

@@ -16,6 +16,7 @@ dependencies = [
[virtualenvs] [virtualenvs]
in-project = true in-project = true
create = true
[tool.alembic] [tool.alembic]
script_location = "%(here)s/migrations" script_location = "%(here)s/migrations"

View File

@@ -3,6 +3,7 @@ log_cli = 1
log_cli_level = INFO log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s) log_cli_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)
log_cli_date_format=%Y-%m-%d %H:%M:%S log_cli_date_format=%Y-%m-%d %H:%M:%S
pythonpath = ../app
env = env =
DATABASE_FILE=testdb.sqlite DATABASE_FILE=testdb.sqlite
DATABASE_URL=sqlite:///testdb.sqlite?cache=shared DATABASE_URL=sqlite:///testdb.sqlite?cache=shared