From 9fdf72c4dcf4b78a7cf3327efa78c3e1d2510f98 Mon Sep 17 00:00:00 2001 From: Christian Lorentzen Date: Fri, 30 Dec 2022 17:59:39 +0100 Subject: [PATCH] MNT improve test report in CI (#7) --- .github/workflows/test.yml | 4 ++-- pyproject.toml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5c350a3..97803ff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ env: FORCE_COLOR: "1" jobs: - run: + run-test-suite: name: Python ${{ matrix.python-version }} on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }} runs-on: ${{ matrix.os }} strategy: @@ -42,4 +42,4 @@ jobs: run: hatch run lint:all - name: Run tests - run: hatch run cov \ No newline at end of file + run: hatch run cov diff --git a/pyproject.toml b/pyproject.toml index 64f060c..c2b64b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -82,7 +82,8 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] -cov = "pytest -n auto --cov-report=term-missing --cov-config=pyproject.toml --cov=src/model_diagnostics" +# Adding "-n auto" (pytest-xdist) allows parallel execution but swallows output. +cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=src/model_diagnostics {args}" no-cov = "cov --no-cov" [tool.hatch.envs.docs]