From dd6e53af516b1b3c405f378fc1b55a693775c27f Mon Sep 17 00:00:00 2001 From: Javier Date: Tue, 24 Sep 2024 15:13:28 +0100 Subject: [PATCH] A couple of more git actions attempts: specifying filename coverage.xml --- .github/workflows/build.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 50e2e497..da2a6608 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,12 +51,12 @@ jobs: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Test with pytest run: | - pytest --doctest-modules pytorch_widedeep --cov-report xml --cov-report term --disable-pytest-warnings --cov=pytorch_widedeep tests/ + pytest --doctest-modules pytorch_widedeep/models --cov-report xml --cov-report term --disable-pytest-warnings --cov=pytorch_widedeep/models tests/test_model_functionality - name: Upload coverage uses: actions/upload-artifact@v4 with: name: coverage${{ matrix.python-version }} - path: .coverage + path: coverage.xml finish: needs: test @@ -72,12 +72,13 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install coverage - - name: Download all artifacts - # Downloads coverage1, coverage2, etc. + - name: Download all coverage artifacts uses: actions/download-artifact@v4 + with: + path: coverage-files - name: Convert coverage run: | - coverage combine coverage*/.coverage* + coverage combine coverage-files/*/coverage.xml coverage report --fail-under=90 coverage xml - name: upload coverage to Codecov