diff --git a/action.yml b/action.yml index 6a1f284..06e239d 100644 --- a/action.yml +++ b/action.yml @@ -282,16 +282,16 @@ runs: --cov=${{ inputs.module-dir }} \ --json-report \ --json-report-file=markdown/pytest-report.json \ - --capture=no" + --capture=no \ + --log-file=outputs/pytest-output.log" - CMD="pytest -s $TEST_PATH $PYTEST_ARGS 2>&1 | tee outputs/pytest-output.log" + CMD="pytest -s $TEST_PATH $PYTEST_ARGS" case "${{ inputs.env }}" in pixi) CMD="pixi run $CMD" ;; conda) CMD="conda run -n myenv $CMD" ;; pip|custom) ;; esac - exec >>"$LOG_FILE" 2>&1 echo "⚡ Running tests and generating reports..."