Skip to content

Commit

Permalink
Ensure user tests exist for a green check
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkula committed May 11, 2023
1 parent 7cbfb81 commit e073c7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/run-calculator-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@ jobs:
- name: Run test
run: |-
cd calculator/tests
python3 your_tests.py
OUTPUT_RUNS=True python3 your_tests.py | tee ./output.txt \
&& grep -q "TEST RUN:" ./output.txt \
&& rm -f output.txt \
|| echo "Either your tests failed or you didn't write any!"

0 comments on commit e073c7c

Please sign in to comment.