Ensure that errors directory exists before trying to upload from it

This commit is contained in:
Andrew Murray 2020-01-25 13:30:21 +11:00
parent d33d467169
commit b7dce81879
2 changed files with 12 additions and 0 deletions

View File

@ -357,6 +357,12 @@ jobs:
%PYTHON%\python.exe -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
shell: cmd
- name: Prepare to upload errors
if: failure()
run: |
mkdir -p Tests/errors
shell: pwsh
- name: Upload errors
uses: actions/upload-artifact@v1
if: failure()

View File

@ -76,6 +76,12 @@ jobs:
run: |
.ci/test.sh
- name: Prepare to upload errors
if: failure()
run: |
mkdir -p Tests/errors
shell: pwsh
- name: Upload errors
uses: actions/upload-artifact@v1
if: failure()