Skip to content

Commit

Permalink
A couple of more git actions attempts: specifying filename coverage.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
jrzaurin committed Sep 24, 2024
1 parent e059c71 commit dd6e53a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit dd6e53a

Please sign in to comment.