Skip to content

Commit 79cb371

Browse files
committed
CI: add timeout to tests
In rare occasions, tests may hang for hours. In principle, tests should never take more than 10min to run, even the most underpowered computer.
1 parent 5d98805 commit 79cb371

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/cabal.yml

+3
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,7 @@ jobs:
7474
run: cabal build all ${{matrix.cabal-flags}}
7575

7676
- name: Run all tests
77+
# We have seen in the past some tests hang for hours, wasting resources.
78+
# The timeout below should be plenty
79+
timeout-minutes: 10
7780
run: cabal test all ${{matrix.cabal-flags}}

0 commit comments

Comments
 (0)