Upload errors on failure

This commit is contained in:
Andrew Murray 2022-02-02 15:09:49 +11:00
parent 4be3b760f2
commit 8d2c56ec1f

View File

@ -62,6 +62,18 @@ jobs:
run: |
bash.exe xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh
- name: Prepare to upload errors
if: failure()
run: |
mkdir -p Tests/errors
- name: Upload errors
uses: actions/upload-artifact@v2
if: failure()
with:
name: errors
path: Tests/errors
- name: After success
run: |
bash.exe .ci/after_success.sh
@ -73,13 +85,6 @@ jobs:
flags: GHA_Cygwin
name: Cygwin Python 3.${{ matrix.python-minor-version }} ${{ matrix.architecture }}
- name: After failure
if: failure()
run: |
C:\tools\cygwin\bin\uname -a
C:\tools\cygwin\bin\python3.8 -m pip list
C:\tools\cygwin\bin\python3.8 -m pip show --files Pillow
success:
needs: build
runs-on: ubuntu-latest