From 9a3c44c66e3e4b7dbcf1a0ca9a0eaee54a2a6519 Mon Sep 17 00:00:00 2001 From: andrzejnovak Date: Sat, 6 Feb 2021 12:12:02 +0100 Subject: [PATCH] ci: upload pytest artifacts --- .github/workflows/tests.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0da4b5df4993..dfcfc61ab699 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -216,6 +216,34 @@ jobs: --maxfail=50 --timeout=300 --durations=25 \ --cov-report= --cov=lib --log-level=DEBUG + - name: Collect failed result_images + if: failure() + run: | + mkdir failed + failed_test=() + for folder in result_images/*; do + for filename in $folder/*; do + if [[ $filename == *"-diff"* ]]; then + testname="${filename/-failed-diff/*}" + failed_test=(${failed_test[@]} $testname) + fi + done + done + for path in "${failed_test[@]}"; do + # Has to fix paths with '[png]' -> '\[png\]' + parsed=`echo $path | sed 's/[]]/\\\\]/g' | sed 's/[[]/\\\\[/g'` + ls $parsed + cp $parsed failed/ + done + + - name: Upload pytest test results + uses: actions/upload-artifact@v2 + if: failure() + with: + name: failed_images-${{ matrix.python-version }}-${{ matrix.os }} + retention-days: 3 + path: failed/ + - name: Filter C coverage run: | lcov --capture --directory . --output-file coverage.info pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy