ci: Update pytest configuration and add pytest-flakefinder. (#3330)

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-08-14 11:29:03 -03:00 committed by GitHub
commit 9035f1194f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 34 additions and 2 deletions

16
poetry.lock generated
View file

@ -8259,6 +8259,20 @@ pytest = ">=4.6"
[package.extras]
testing = ["fields", "hunter", "process-tests", "pytest-xdist", "virtualenv"]
[[package]]
name = "pytest-flakefinder"
version = "1.1.0"
description = "Runs tests multiple times to expose flakiness."
optional = false
python-versions = ">=3.5"
files = [
{file = "pytest-flakefinder-1.1.0.tar.gz", hash = "sha256:e2412a1920bdb8e7908783b20b3d57e9dad590cc39a93e8596ffdd493b403e0e"},
{file = "pytest_flakefinder-1.1.0-py2.py3-none-any.whl", hash = "sha256:741e0e8eea427052f5b8c89c2b3c3019a50c39a59ce4df6a305a2c2d9ba2bd13"},
]
[package.dependencies]
pytest = ">=2.7.1"
[[package]]
name = "pytest-instafail"
version = "0.5.0"
@ -11971,4 +11985,4 @@ local = ["ctransformers", "llama-cpp-python", "sentence-transformers"]
[metadata]
lock-version = "2.0"
python-versions = ">=3.10,<3.13"
content-hash = "b5bc8889f729816d67f91ac094e93356a99809d9dc9e2dd994469a37ba122447"
content-hash = "0a8488e090f11cb87d8eecc8672afa2d4eeb31f5dc69d131c7a1c1b69ebc74bd"

View file

@ -136,6 +136,7 @@ pre-commit = "^3.7.0"
vulture = "^2.11"
dictdiffer = "^0.9.0"
pytest-split = "^0.9.0"
pytest-flakefinder = "^1.1.0"
[tool.poetry.extras]
deploy = ["celery", "redis", "flower"]
@ -162,6 +163,8 @@ testpaths = ["tests", "integration"]
console_output_style = "progress"
filterwarnings = ["ignore::DeprecationWarning", "ignore::ResourceWarning"]
log_cli = true
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
markers = ["async_test", "api_key_required"]

View file

@ -5406,6 +5406,20 @@ pytest = ">=4.6"
[package.extras]
testing = ["fields", "hunter", "process-tests", "pytest-xdist", "virtualenv"]
[[package]]
name = "pytest-flakefinder"
version = "1.1.0"
description = "Runs tests multiple times to expose flakiness."
optional = false
python-versions = ">=3.5"
files = [
{file = "pytest-flakefinder-1.1.0.tar.gz", hash = "sha256:e2412a1920bdb8e7908783b20b3d57e9dad590cc39a93e8596ffdd493b403e0e"},
{file = "pytest_flakefinder-1.1.0-py2.py3-none-any.whl", hash = "sha256:741e0e8eea427052f5b8c89c2b3c3019a50c39a59ce4df6a305a2c2d9ba2bd13"},
]
[package.dependencies]
pytest = ">=2.7.1"
[[package]]
name = "pytest-instafail"
version = "0.5.0"
@ -7544,4 +7558,4 @@ local = []
[metadata]
lock-version = "2.0"
python-versions = ">=3.10,<3.13"
content-hash = "fe6710d7325bc2cceeaa298d94d6f1157cfe1533c2acbabe3ecdca5594d9e007"
content-hash = "12d207ab2531a201c153cfc0ec800ae9b43c47dd34506f19f7ed97e27c032149"

View file

@ -119,6 +119,7 @@ vulture = "^2.11"
dictdiffer = "^0.9.0"
pytest-split = "^0.9.0"
devtools = "^0.12.2"
pytest-flakefinder = "^1.1.0"
[tool.pytest.ini_options]