fixup! .gitea/workflows: init test pipeline
Some checks failed
Run tests / run-tests (push) Failing after 20s

This commit is contained in:
2025-12-08 20:17:00 +09:00
parent d39f1f8a92
commit d35ffd04cc

View File

@@ -2,6 +2,12 @@ name: Run tests
on:
pull_request:
push:
workflow_dispatch:
inputs:
debug_sqlalchemy:
description: "Print SQL statements executed by SQLAlchemy during tests"
type: boolean
default: false
jobs:
run-tests:
runs-on: debian-latest
@@ -15,7 +21,20 @@ jobs:
run: uv sync --locked
- name: Run tests
run: uv tool run pytest --cov=dibbler --cov-report=html
run: |
PYTEST_ARGS=(
--cov=dibbler
--cov-report=html
--cov-branch
)
if [ "${{ inputs.debug_sqlalchemy }}" == "true" ]; then
PYTEST_ARGS+=(
--echo
)
fi
uv run -- pytest --cov=dibbler --cov-report=html
- name: Generate badge
run: uvx coverage-badge -o htmlcov/badge.svg