Skip to content

Commit e073c7c

Browse files
committed
Ensure user tests exist for a green check
1 parent 7cbfb81 commit e073c7c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/run-calculator-ci.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,7 @@ jobs:
4848
- name: Run test
4949
run: |-
5050
cd calculator/tests
51-
python3 your_tests.py
51+
OUTPUT_RUNS=True python3 your_tests.py | tee ./output.txt \
52+
&& grep -q "TEST RUN:" ./output.txt \
53+
&& rm -f output.txt \
54+
|| echo "Either your tests failed or you didn't write any!"

0 commit comments

Comments
 (0)