From 14b376e07d31b09b6bd31bceebf6ffb477c30f08 Mon Sep 17 00:00:00 2001 From: F-G Fernandez <76527547+fg-mindee@users.noreply.github.com> Date: Wed, 29 Sep 2021 18:45:03 +0200 Subject: [PATCH] chore: Fixed coverage upload of common (#506) * chore: Fixed coverage of common * chore: Prevents coverage upload from failing silently --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 78065ebc88..877f8fe0ed 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -95,11 +95,12 @@ jobs: - name: Run unittests run: | coverage run -m pytest test/common/ - coverage xml + coverage xml -o coverage-common.xml - uses: actions/upload-artifact@v2 with: name: coverage-common path: ./coverage-common.xml + if-no-files-found: error pytest-tf: needs: install-tf @@ -138,6 +139,7 @@ jobs: with: name: coverage-tf path: ./coverage-tf.xml + if-no-files-found: error pytest-torch: needs: install-pytorch @@ -178,6 +180,7 @@ jobs: with: name: coverage-pytorch path: ./coverage-pt.xml + if-no-files-found: error codecov-upload: runs-on: ubuntu-latest