From 5e8a7b54777eebdee75515df8b56fdb7224e756d Mon Sep 17 00:00:00 2001 From: tligui_y Date: Tue, 22 Jul 2025 15:58:03 +0200 Subject: [PATCH] Update action.yml --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index d1ec737..e4242f7 100644 --- a/action.yml +++ b/action.yml @@ -106,7 +106,10 @@ runs: --cov-report=html:${{ inputs.report-dir }}/coverage/ \ --json-report \ --json-report-file=${{ inputs.report-dir }}/markdown/pytest-report.json \ - --capture=no > ${{ inputs.report-dir }}/markdown/raw-test-output.log 2>&1 + --capture=no > ${{ inputs.report-dir }}/markdown/full-output.log 2>&1 + + awk '/=+ test session starts =+/{flag=1} /-+ JSON report -+/{flag=0} flag' ${{ inputs.report-dir }}/markdown/full-output.log > ${{ inputs.report-dir }}/markdown/raw-test-output.log + awk '/=+ short test summary info =+/,/=+.* in .*s =+/' ${{ inputs.report-dir }}/markdown/full-output.log > ${{ inputs.report-dir }}/markdown/raw-test-output.log exit_code=$? @@ -168,7 +171,6 @@ runs: ! -name 'pytest-report.json' \ ! -name 'runtime_params.json' \ ! -name 'TEST-REPORT.md' \ - ! -name 'raw-test-output.log' \ -delete echo "DEBUG: Liste des fichiers dans ${{ inputs.report-dir }}/markdown/"