Skip to content

Commit 9b0942d

Browse files
Bordacarmocca
andauthored
CI: fix upload-artifact (#11962)
Co-authored-by: Carlos Mocholí <[email protected]>
1 parent 3579a30 commit 9b0942d

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.github/workflows/ci_test-conda.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ jobs:
5353
- name: Upload pytest results
5454
uses: actions/upload-artifact@v2
5555
with:
56-
name: pytest-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}
57-
path: junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
56+
name: pytest-results-${{ runner.os }}-torch${{ matrix.pytorch-version }}
57+
path: junit/test-results-${{ runner.os }}-torch${{ matrix.pytorch-version }}.xml
58+
if-no-files-found: error
5859
if: failure()
5960

6061
- name: Statistics

.github/workflows/ci_test-full.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ jobs:
147147
- name: Upload pytest results
148148
uses: actions/upload-artifact@v2
149149
with:
150-
name: pytest-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}-${{ matrix.release }}
151-
path: junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}-${{ matrix.release }}.xml
150+
name: pytest-results-${{ runner.os }}-py${{ matrix.python-version }}-${{ matrix.requires }}-${{ matrix.release }}
151+
path: junit/test-results-${{ runner.os }}-py${{ matrix.python-version }}-${{ matrix.requires }}-${{ matrix.release }}.xml
152+
if-no-files-found: error
152153
if: failure()
153154

154155
- name: Statistics

.github/workflows/ci_test-slow.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,16 @@ jobs:
5757

5858
- name: Tests
5959
run: |
60-
coverage run --source pytorch_lightning -m pytest tests -v --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}.xml
60+
coverage run --source pytorch_lightning -m pytest tests -v --junitxml=junit/test-results-${{ runner.os }}-py${{ matrix.python-version }}.xml
6161
env:
6262
PL_RUN_SLOW_TESTS: 1
6363

6464
- name: Upload pytest test results
6565
uses: actions/upload-artifact@v2
6666
with:
67-
name: pytest-results-${{ runner.os }}-${{ matrix.python-version }}
68-
path: junit/test-results-${{ runner.os }}-${{ matrix.python-version }}.xml
67+
name: pytest-results-${{ runner.os }}-py${{ matrix.python-version }}
68+
path: junit/test-results-${{ runner.os }}-py${{ matrix.python-version }}.xml
69+
if-no-files-found: error
6970
if: failure()
7071

7172
- name: Statistics

0 commit comments

Comments
 (0)