Skip to content

Commit

Permalink
feat: Update workflow to log with timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
a-dubaj committed Jun 25, 2024
1 parent 5c93abd commit da39b22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ jobs:
env:
PYTHONPATH: ${{ github.workspace }}
run: |
xvfb-run -a pytest tests/
chmod +x log_with_timestamp.sh
xvfb-run -a pytest tests/ 2>&1 | ./log_with_timestamp.sh
5 changes: 5 additions & 0 deletions log_with_timestamp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
while IFS= read -r line
do
echo "$(date '+%Y-%m-%d %H:%M:%S') $line"
done

0 comments on commit da39b22

Please sign in to comment.