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]