summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 599ba3b1b..8929f87e4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -119,6 +119,21 @@ jobs:
run: "python scripts/dev/ci/problemmatchers.py tests ${{ runner.temp }}"
- name: Run tox
run: "dbus-run-session -- tox -e ${{ matrix.testenv }}"
+ - name: Gather info
+ id: info
+ run: |
+ echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
+ echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
+ shell: bash
+ if: failure()
+ - name: Upload screenshots
+ uses: actions/upload-artifact@v4
+ with:
+ name: "end2end-screenshots-${{ steps.info.outputs.date }}-${{ steps.info.outputs.sha_short }}-${{ matrix.image }}"
+ path: |
+ ${{ runner.temp }}/pytest-screenshots/*.png
+ if-no-files-found: ignore
+ if: failure()
tests:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
@@ -220,6 +235,21 @@ jobs:
uses: codecov/codecov-action@v3
with:
name: "${{ matrix.testenv }}"
+ - name: Gather info
+ id: info
+ run: |
+ echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
+ echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
+ shell: bash
+ if: failure()
+ - name: Upload screenshots
+ uses: actions/upload-artifact@v4
+ with:
+ name: "end2end-screenshots-${{ steps.info.outputs.date }}-${{ steps.info.outputs.sha_short }}-${{ matrix.testenv }}-${{ matrix.os }}"
+ path: |
+ ${{ runner.temp }}/pytest-screenshots/*.png
+ if-no-files-found: ignore
+ if: failure()
codeql:
if: "!contains(github.event.head_commit.message, '[ci skip]')"