From 2d41a158bc341b32d5cb101a636634595e030cfa Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Sun, 15 Mar 2026 13:25:42 +0100 Subject: [PATCH] wip --- .github/workflows/end2end-conda.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/end2end-conda.yml b/.github/workflows/end2end-conda.yml index 0e0f13c7..9bc2eba4 100644 --- a/.github/workflows/end2end-conda.yml +++ b/.github/workflows/end2end-conda.yml @@ -49,11 +49,16 @@ jobs: cd ../ pip install -e ./ophyd_devices -e .[dev,pyside6] -e ./bec_testing_plugin pip install pytest-repeat - pytest -v --files-path ./ --start-servers --random-order ./tests/end-2-end/user_interaction/test_user_interaction_e2e.py - # find the logs and upload them as artifacts - mkdir -p logs - find . -type f -name "*.log" -exec cp --parents {} logs/ \; + + collect_logs() { + mkdir -p logs + find . -type f -name "*.log" -exec cp --parents {} logs/ + + } + + trap collect_logs EXIT + + pytest -v --files-path ./ --start-servers --random-order ./tests/end-2-end/user_interaction/test_user_interaction_e2e.py - name: Upload logs if job fails if: failure()