Skip to content

Commit

Permalink
MNT improve test report in CI (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorentzenchr authored Dec 30, 2022
1 parent 16a5f0f commit 9fdf72c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -42,4 +42,4 @@ jobs:
run: hatch run lint:all

- name: Run tests
run: hatch run cov
run: hatch run cov
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 9fdf72c

Please sign in to comment.