From d12bd9fe1a010babc94dc86405d1b75a2b07534c Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Fri, 30 May 2025 17:10:03 +0200 Subject: [PATCH] ci: add job logs to e2e test --- .github/workflows/end2end-conda.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/end2end-conda.yml b/.github/workflows/end2end-conda.yml index 40db90f1..079f3b6c 100644 --- a/.github/workflows/end2end-conda.yml +++ b/.github/workflows/end2end-conda.yml @@ -47,4 +47,12 @@ jobs: source ./bin/install_bec_dev.sh -t cd ../ pip install -e ./ophyd_devices -e .[dev,pyside6] -e ./bec_testing_plugin - pytest -v --files-path ./ --start-servers --random-order ./tests/end-2-end \ No newline at end of file + pytest -v --files-path ./ --start-servers --random-order ./tests/end-2-end + + - name: Upload logs if job fails + if: failure() + uses: actions/upload-artifact@v3 + with: + name: pytest-logs + path: ./logs/*.log + retention-days: 7 \ No newline at end of file