run pytest in parallel
All checks were successful
checks-integration / test (pull_request) Successful in 5s
checks / test (pull_request) Successful in 18s

This commit is contained in:
Jörg Thalheim 2023-08-27 09:45:15 +02:00
parent 81d02bb218
commit 9cc6a14d73
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@
, pytest
, pytest-cov
, pytest-subprocess
, pytest-parallel
, python3
, runCommand
, self
@ -36,6 +37,7 @@ let
pytest
pytest-cov
pytest-subprocess
pytest-parallel
openssh
stdenv.cc
];

View File

@ -15,7 +15,7 @@ exclude = ["clan_cli.nixpkgs*"]
clan_cli = [ "config/jsonschema/*", "webui/assets/**/*"]
[tool.pytest.ini_options]
addopts = "--cov . --cov-report term --cov-report html:.reports/html --no-cov-on-fail"
addopts = "--cov . --cov-report term --cov-report html:.reports/html --no-cov-on-fail --workers auto"
norecursedirs = "tests/helpers"
[tool.mypy]