Merge pull request #4379 from radarhere/errors

Ensure that errors directory exists before trying to upload from it
This commit is contained in:
Hugo van Kemenade 2020-01-26 08:10:37 +02:00 committed by GitHub
commit a64d0c9945
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

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

View File

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