Skip to content

Commit a64d0c9

Browse files
authored
Merge pull request #4379 from radarhere/errors
Ensure that errors directory exists before trying to upload from it
2 parents 4b626ea + b7dce81 commit a64d0c9

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/test-windows.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,12 @@ jobs:
338338
%PYTHON%\python.exe -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
339339
shell: cmd
340340

341+
- name: Prepare to upload errors
342+
if: failure()
343+
run: |
344+
mkdir -p Tests/errors
345+
shell: pwsh
346+
341347
- name: Upload errors
342348
uses: actions/upload-artifact@v1
343349
if: failure()

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ jobs:
7676
run: |
7777
.ci/test.sh
7878
79+
- name: Prepare to upload errors
80+
if: failure()
81+
run: |
82+
mkdir -p Tests/errors
83+
shell: pwsh
84+
7985
- name: Upload errors
8086
uses: actions/upload-artifact@v1
8187
if: failure()

0 commit comments

Comments
 (0)