Skip to content

Commit bf570cc

Browse files
committed
should be portable to suppress no exit code 5
1 parent 26fad8a commit bf570cc

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
run: uv sync --all-extras --dev
9090

9191
- name: Test with PyTest
92-
run: uv run pytest --cov=TODO_package_name/ --cov-fail-under=0 tests/
92+
run: uv run pytest --cov=TODO_package_name/ tests/
9393

9494
- name: Minimize uv cache
9595
run: uv cache prune --ci

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ dev = [
3434
"pre-commit>=4.2.0",
3535
"pytest>=8.4.1",
3636
"pytest-cov>=6.2.1",
37+
"pytest-custom-exit-code>=0.3.0",
3738
]
3839

40+
[tool.pytest.ini_options]
41+
addopts=['--suppress-no-test-exit-code']
42+
3943
[tool.ruff]
4044
target-version = 'py313'
4145

0 commit comments

Comments
 (0)