Skip to content

Commit 5539d12

Browse files
Merge pull request matplotlib#30188 from ayshih/image_cleanup
Fixed incomplete deletion of all images that have passed tests before upload
2 parents 33a0d07 + 8c75238 commit 5539d12

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,13 +346,15 @@ jobs:
346346
run: |
347347
function remove_files() {
348348
local extension=$1
349-
find ./result_images -type f -name "*-expected*.$extension" | while read file; do
349+
find ./result_images -name "*-expected*.$extension" | while read file; do
350350
if [[ $file == *"-expected_pdf"* ]]; then
351351
base=${file%-expected_pdf.$extension}_pdf
352352
elif [[ $file == *"-expected_eps"* ]]; then
353353
base=${file%-expected_eps.$extension}_eps
354354
elif [[ $file == *"-expected_svg"* ]]; then
355355
base=${file%-expected_svg.$extension}_svg
356+
elif [[ $file == *"-expected_gif"* ]]; then
357+
base=${file%-expected_gif.$extension}_gif
356358
else
357359
base=${file%-expected.$extension}
358360
fi
@@ -369,7 +371,7 @@ jobs:
369371
done
370372
}
371373
372-
remove_files "png"; remove_files "svg"; remove_files "pdf"; remove_files "eps";
374+
remove_files "png"; remove_files "svg"; remove_files "pdf"; remove_files "eps"; remove_files "gif";
373375
374376
if [ "$(find ./result_images -mindepth 1 -type d)" ]; then
375377
find ./result_images/* -type d -empty -delete

0 commit comments

Comments
 (0)