Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ repos:
- id: check-no-tests-are-ignored
additional_dependencies: [pandas,pyyaml]
entry: python scripts/check_all_tests_are_covered.py
files: ^\.github/workflows/pytest\.yml$
files: ^.github/workflows/tests.yml$
language: python
name: Check no tests are ignored
pass_filenames: false
Expand Down
6 changes: 4 additions & 2 deletions scripts/check_all_tests_are_covered.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@ def from_yaml():
_log.info("Number of test runs (❌=0, ✅=once)\n%s", df.replace(0, "❌").replace(1, "✅"))

if ignored_by_all:
_log.warning("%i tests are completely ignored:\n%s", len(ignored_by_all), ignored_by_all)
raise AssertionError(
f"{len(ignored_by_all)} tests are completely ignored:\n{ignored_by_all}"
)
if run_multiple_times:
raise Exception(
raise AssertionError(
f"{len(run_multiple_times)} tests are run multiple times with the same OS and floatX setting:\n{run_multiple_times}"
)
return
Expand Down