From 9cc6a14d730ef38805a85d0e1fd79f77ab5c75af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 27 Aug 2023 09:45:15 +0200 Subject: [PATCH] run pytest in parallel --- pkgs/clan-cli/default.nix | 2 ++ pkgs/clan-cli/pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/clan-cli/default.nix b/pkgs/clan-cli/default.nix index feee2d82..b1bde572 100644 --- a/pkgs/clan-cli/default.nix +++ b/pkgs/clan-cli/default.nix @@ -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 ]; diff --git a/pkgs/clan-cli/pyproject.toml b/pkgs/clan-cli/pyproject.toml index 1892ad69..fcaad7d7 100644 --- a/pkgs/clan-cli/pyproject.toml +++ b/pkgs/clan-cli/pyproject.toml @@ -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]