Skip to content

Commit

Permalink
adding test result analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
montymi authored Mar 7, 2024
1 parent 2393378 commit dfea667
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,17 @@ jobs:
run: |
pip install -r requirements.txt
- name: Run tests
- name: Run Python script
id: test_result
run: |
cd src
python test_main.py
python test_main.py || echo "Test failed"
- name: Determine test result
run: |
if [[ "${{ steps.test_result.outputs.stdout }}" == *"OK"* ]]; then
echo "Test passed"
else
echo "Test failed"
exit 1
fi

0 comments on commit dfea667

Please sign in to comment.