fixup! .gitea/workflows: init test pipeline
This commit is contained in:
@@ -4,13 +4,13 @@ on:
|
|||||||
push:
|
push:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
debug_sqlalchemy:
|
debug_sql:
|
||||||
description: "Print SQL statements executed by SQLAlchemy during tests"
|
description: "Print SQL statements executed by SQLAlchemy during tests"
|
||||||
type: boolean
|
type: boolean
|
||||||
default: True
|
default: True
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DEBUG_SQLALCHEMY: ${{ inputs.debug_sqlalchemy || true }}
|
DEBUG_SQL: ${{ inputs.debug_sql || true }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-tests:
|
run-tests:
|
||||||
@@ -43,9 +43,9 @@ jobs:
|
|||||||
--html=./test-report/index.html
|
--html=./test-report/index.html
|
||||||
)
|
)
|
||||||
|
|
||||||
if [ "$DEBUG_SQLALCHEMY" == "true" ]; then
|
if [ "$DEBUG_SQL" == "true" ]; then
|
||||||
PYTEST_ARGS+=(
|
PYTEST_ARGS+=(
|
||||||
--echo
|
--debug-sql
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user