Skip to content

Commit dcca12e

Browse files
Capture pytest output for backend tests and report coverage
1 parent 6a6e354 commit dcca12e

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 -q
57+
pytest_output=$(python -m pytest src/tests/backend --cov=backend --cov-append --cov-report= --cov-config=.coveragerc --ignore=src/tests/backend/test_app.py -q 2>&1 | tail -1)
5858
python -m coverage report --rcfile=.coveragerc
59+
echo "$pytest_output"
5960
6061
# - name: Run tests with coverage
6162
# if: env.skip_tests == 'false'

0 commit comments

Comments
 (0)