CI: fix upload-artifact (#11962)

Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
This commit is contained in:
Jirka Borovec 2022-02-21 16:03:02 +01:00 committed by GitHub
parent 3579a3083f
commit 9b0942d731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 7 deletions

View File

@ -53,8 +53,9 @@ jobs:
- name: Upload pytest results
uses: actions/upload-artifact@v2
with:
name: pytest-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}
path: junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
name: pytest-results-${{ runner.os }}-torch${{ matrix.pytorch-version }}
path: junit/test-results-${{ runner.os }}-torch${{ matrix.pytorch-version }}.xml
if-no-files-found: error
if: failure()
- name: Statistics

View File

@ -147,8 +147,9 @@ jobs:
- name: Upload pytest results
uses: actions/upload-artifact@v2
with:
name: pytest-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}-${{ matrix.release }}
path: junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}-${{ matrix.release }}.xml
name: pytest-results-${{ runner.os }}-py${{ matrix.python-version }}-${{ matrix.requires }}-${{ matrix.release }}
path: junit/test-results-${{ runner.os }}-py${{ matrix.python-version }}-${{ matrix.requires }}-${{ matrix.release }}.xml
if-no-files-found: error
if: failure()
- name: Statistics

View File

@ -57,15 +57,16 @@ jobs:
- name: Tests
run: |
coverage run --source pytorch_lightning -m pytest tests -v --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}.xml
coverage run --source pytorch_lightning -m pytest tests -v --junitxml=junit/test-results-${{ runner.os }}-py${{ matrix.python-version }}.xml
env:
PL_RUN_SLOW_TESTS: 1
- name: Upload pytest test results
uses: actions/upload-artifact@v2
with:
name: pytest-results-${{ runner.os }}-${{ matrix.python-version }}
path: junit/test-results-${{ runner.os }}-${{ matrix.python-version }}.xml
name: pytest-results-${{ runner.os }}-py${{ matrix.python-version }}
path: junit/test-results-${{ runner.os }}-py${{ matrix.python-version }}.xml
if-no-files-found: error
if: failure()
- name: Statistics