This commit is contained in:
23
.gitea/workflows/test.yaml
Normal file
23
.gitea/workflows/test.yaml
Normal 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
|
||||||
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user