Skip to content

Commit 4551f12

Browse files
Capture pytest output for backend tests and display the last line in the workflow
1 parent a749bd2 commit 4551f12

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ jobs:
5454
if: env.skip_tests == 'false'
5555
run: |
5656
python -m pytest src/tests/backend/test_app.py --cov=backend.app --cov-report= --cov-config=.coveragerc -q > /dev/null 2>&1
57-
python -m pytest src/tests/backend --cov=backend --cov-append --cov-report= --cov-config=.coveragerc --ignore=src/tests/backend/test_app.py
57+
python -m pytest src/tests/backend --cov=backend --cov-append --cov-report= --cov-config=.coveragerc --ignore=src/tests/backend/test_app.py 2>&1 | tee /tmp/pytest_output.txt
5858
python -m coverage report --rcfile=.coveragerc
59+
tail -1 /tmp/pytest_output.txt
5960
6061
- name: Skip coverage report if no tests
6162
if: env.skip_tests == 'true'

0 commit comments

Comments
 (0)