Skip to content

Commit

Permalink
pytest: add xdist for parallel testing
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Nov 18, 2024
1 parent bade6a9 commit d2b0892
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pkgs.python3Packages.buildPythonApplication {
];
nativeCheckInputs = [
pkgs.python3Packages.pytest
pkgs.python3Packages.pytest-xdist
];
checkPhase = ''
PYTHONPATH= $out/bin/nix-update --help
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ Homepage = "https://github.com/Mic92/nix-update"
[project.scripts]
nix-update = "nix_update:main"

[tool.pytest.ini_options]
addopts = "-v -n auto"

[tool.ruff]
target-version = "py311"
line-length = 88
Expand Down

0 comments on commit d2b0892

Please sign in to comment.