ci: add pytest failure annotations (#4324)
* Add pytest-github-actions-annotate-failures to dependencies in pyproject.toml * feat: add --exclude-warning-annotations option to pytest commands in Makefile * feat: add pytest-github-actions-annotate-failures to dev dependencies in pyproject.toml and uv.lock * Add PYTEST_RUN_PATH environment variable to GitHub Actions workflow * Remove '--exclude-warning-annotations' option from pytest commands in Makefile
This commit is contained in:
parent
0fd3d93b1d
commit
6ca864931d
4 changed files with 22 additions and 1 deletions
1
.github/workflows/python_test.yml
vendored
1
.github/workflows/python_test.yml
vendored
|
|
@ -27,6 +27,7 @@ on:
|
|||
env:
|
||||
POETRY_VERSION: "1.8.2"
|
||||
NODE_VERSION: "21"
|
||||
PYTEST_RUN_PATH: "src/backend/tests"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
|
|||
|
|
@ -171,6 +171,7 @@ dev-dependencies = [
|
|||
"types-markdown>=3.7.0.20240822",
|
||||
"packaging>=23.2,<24.0",
|
||||
"asgi-lifespan>=2.1.0",
|
||||
"pytest-github-actions-annotate-failures>=0.2.0",
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ ignore = [
|
|||
[tool.uv]
|
||||
dev-dependencies = [
|
||||
"asgi-lifespan>=2.1.0",
|
||||
"pytest-github-actions-annotate-failures>=0.2.0",
|
||||
]
|
||||
|
||||
[build-system]
|
||||
|
|
|
|||
20
uv.lock
generated
20
uv.lock
generated
|
|
@ -3687,6 +3687,7 @@ dev = [
|
|||
{ name = "pytest-asyncio" },
|
||||
{ name = "pytest-cov" },
|
||||
{ name = "pytest-flakefinder" },
|
||||
{ name = "pytest-github-actions-annotate-failures" },
|
||||
{ name = "pytest-instafail" },
|
||||
{ name = "pytest-mock" },
|
||||
{ name = "pytest-profiling" },
|
||||
|
|
@ -3812,6 +3813,7 @@ dev = [
|
|||
{ name = "pytest-asyncio", specifier = ">=0.23.0" },
|
||||
{ name = "pytest-cov", specifier = ">=5.0.0" },
|
||||
{ name = "pytest-flakefinder", specifier = ">=1.1.0" },
|
||||
{ name = "pytest-github-actions-annotate-failures", specifier = ">=0.2.0" },
|
||||
{ name = "pytest-instafail", specifier = ">=0.5.0" },
|
||||
{ name = "pytest-mock", specifier = ">=3.14.0" },
|
||||
{ name = "pytest-profiling", specifier = ">=1.7.0" },
|
||||
|
|
@ -3951,6 +3953,7 @@ local = [
|
|||
[package.dev-dependencies]
|
||||
dev = [
|
||||
{ name = "asgi-lifespan" },
|
||||
{ name = "pytest-github-actions-annotate-failures" },
|
||||
]
|
||||
|
||||
[package.metadata]
|
||||
|
|
@ -4056,7 +4059,10 @@ requires-dist = [
|
|||
]
|
||||
|
||||
[package.metadata.requires-dev]
|
||||
dev = [{ name = "asgi-lifespan", specifier = ">=2.1.0" }]
|
||||
dev = [
|
||||
{ name = "asgi-lifespan", specifier = ">=2.1.0" },
|
||||
{ name = "pytest-github-actions-annotate-failures", specifier = ">=0.2.0" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "langfuse"
|
||||
|
|
@ -6325,6 +6331,18 @@ wheels = [
|
|||
{ url = "https://files.pythonhosted.org/packages/33/8b/06787150d0fd0cbd3a8054262b56f91631c7778c1bc91bf4637e47f909ad/pytest_flakefinder-1.1.0-py2.py3-none-any.whl", hash = "sha256:741e0e8eea427052f5b8c89c2b3c3019a50c39a59ce4df6a305a2c2d9ba2bd13", size = 4644 },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pytest-github-actions-annotate-failures"
|
||||
version = "0.2.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "pytest" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/a8/d6/76d074e1e4d78c5144397e6061af29bcc218dbf19bb64b39e5c296bf42f1/pytest-github-actions-annotate-failures-0.2.0.tar.gz", hash = "sha256:844ab626d389496e44f960b42f0a72cce29ae06d363426d17ea9ae1b4bef2288", size = 9450 }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/eb/86/9ffd9f10a7ba7387ce4ef4362505d739a48dd988051b41d255eb7f102c17/pytest_github_actions_annotate_failures-0.2.0-py3-none-any.whl", hash = "sha256:8bcef65fed503faaa0524b59cfeccc8995130972dd7b008d64193cc41b9cde85", size = 5496 },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pytest-instafail"
|
||||
version = "0.5.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue