From e914397cb13951ec7b27f02a42b7fbc3ec624f2e Mon Sep 17 00:00:00 2001 From: tligui_y Date: Tue, 22 Jul 2025 13:06:00 +0200 Subject: [PATCH] Update action.yml --- action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 700391e..bd40f8c 100644 --- a/action.yml +++ b/action.yml @@ -1,6 +1,10 @@ name: Pytest CI Workflow description: Run pytest with coverage and report upload to Gitea inputs: + absolute_workspace_path: + description: "Path from main repo" + required: true + ci-branch: description: 'Target branch where test reports will be committed' required: true @@ -130,7 +134,7 @@ runs: echo "" echo "📊 Generating tests markdown summary..." - python "${{ github.action_path }}/json_to_md.py" \ + python "${{ github.workspace }}/../test-ci/json_to_md.py" \ --input ${{ inputs.report-dir }}/markdown/pytest-report.json \ --output ${{ inputs.report-dir }}/markdown/TEST-REPORT.md \ --log ${{ inputs.report-dir }}/markdown/raw-test-output.log \ @@ -145,7 +149,7 @@ runs: echo "" echo "🌳 Generating JSON tree view..." - python "${{ github.action_path }}/json_to_tree.py" ${{ inputs.report-dir }}/markdown/pytest-report.json > ${{ inputs.report-dir }}/markdown/json-tree-gen.log 2>&1 && { + python "${{ github.workspace }}/../test-ci/json_to_tree.py" ${{ inputs.report-dir }}/markdown/pytest-report.json > ${{ inputs.report-dir }}/markdown/json-tree-gen.log 2>&1 && { echo "✅ JSON tree view generated" } || { echo "❌ JSON tree generation failed"