From bbdd952977fc5566fee19e1e539914e4d85285dc Mon Sep 17 00:00:00 2001 From: tligui_y Date: Wed, 27 Aug 2025 22:51:54 +0200 Subject: [PATCH] Update action.yml --- action.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index abb5fed..4c3e62a 100644 --- a/action.yml +++ b/action.yml @@ -266,24 +266,29 @@ runs: PYTEST_ARGS="--continue-on-collection-errors \ --cov=${{ inputs.module-dir }} \ --json-report \ - --json-report-file=markdown/pytest-report.json" + --json-report-file=markdown/pytest-report.json \ + --capture=no" case "${{ inputs.env }}" in - pixi) CMD="pixi run pytest $TEST_PATH $PYTEST_ARGS > outputs/pytest-output.log 2>&1 || true" ;; - conda) CMD="conda run -n myenv pytest $TEST_PATH $PYTEST_ARGS > outputs/pytest-output.log 2>&1 || true" ;; - pip) CMD="pytest $TEST_PATH $PYTEST_ARGS > outputs/pytest-output.log 2>&1 || true" ;; + pixi) CMD="pixi run pytest -s $TEST_PATH $PYTEST_ARGS > outputs/pytest-output.log 2>&1 || true" ;; + conda) CMD="conda run -n myenv pytest -s $TEST_PATH $PYTEST_ARGS > outputs/pytest-output.log 2>&1 || true" ;; + pip) CMD="pytest -s $TEST_PATH $PYTEST_ARGS > outputs/pytest-output.log 2>&1 || true" ;; esac exec 1>>"$PRINTS" exec 2>>"$LOG_FILE" cat > custom_cmd.sh <> "\$PRINTS" + ${{ inputs.test-run-cmd }} + + echo -e "\033[95m--- PRINTS of external processes (after pytest) ---\033[0m" >> "\$PRINTS" EOS chmod +x custom_cmd.sh - export CMD - ./custom_cmd.sh + export CMD "$PRINTS" + ./custom_cmd.sh echo "Exit Code: 0" >> $PRINTS