From 9b0942d7315390ba01ee25ff90587e40435b5a8d Mon Sep 17 00:00:00 2001 From: Jirka Borovec Date: Mon, 21 Feb 2022 16:03:02 +0100 Subject: [PATCH] CI: fix upload-artifact (#11962) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Carlos MocholĂ­ --- .github/workflows/ci_test-conda.yml | 5 +++-- .github/workflows/ci_test-full.yml | 5 +++-- .github/workflows/ci_test-slow.yml | 7 ++++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci_test-conda.yml b/.github/workflows/ci_test-conda.yml index 0146a90337..69ac71f101 100644 --- a/.github/workflows/ci_test-conda.yml +++ b/.github/workflows/ci_test-conda.yml @@ -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 diff --git a/.github/workflows/ci_test-full.yml b/.github/workflows/ci_test-full.yml index 6595c5e7b4..87d3665d62 100644 --- a/.github/workflows/ci_test-full.yml +++ b/.github/workflows/ci_test-full.yml @@ -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 diff --git a/.github/workflows/ci_test-slow.yml b/.github/workflows/ci_test-slow.yml index dcdd16a254..073600e13a 100644 --- a/.github/workflows/ci_test-slow.yml +++ b/.github/workflows/ci_test-slow.yml @@ -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