Skip to content

Commit

Permalink
debugging git actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jrzaurin committed Sep 24, 2024
1 parent 503c3f4 commit dfad38a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,19 @@ jobs:
- name: Test with pytest
run: |
pytest --doctest-modules pytorch_widedeep --cov-report xml --cov-report term --disable-pytest-warnings --cov=pytorch_widedeep tests/
- name: Debug - List files
run: |
ls -la
echo "Content of .coverage file:"
cat .coverage || echo ".coverage file not found"
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage${{ matrix.python-version }}
path: coverage-files
name: coverage-${{ matrix.python-version }}
path: .coverage
if-no-files-found: error

finish:
finish:
needs: test
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
Expand All @@ -73,14 +79,15 @@ jobs:
python -m pip install --upgrade pip
python -m pip install coverage
- name: Download all artifacts
# Downloads coverage1, coverage2, etc.
uses: actions/download-artifact@v4
- name: List downloaded files
with:
path: coverage-files
- name: Debug - List downloaded files
run: |
ls -R coverage-files
- name: Convert coverage
run: |
coverage combine coverage-files/*/.coverage*
coverage combine coverage-files/*/.coverage
coverage report --fail-under=90
coverage xml
- name: upload coverage to Codecov
Expand Down

0 comments on commit dfad38a

Please sign in to comment.