Skip to content

Commit

Permalink
Merge pull request #13 from BrainLesion/hotfix-add-codecov-upload
Browse files Browse the repository at this point in the history
Uncomment codecov upload
  • Loading branch information
MarcelRosier authored Nov 27, 2024
2 parents c9a0e0b + 911d89f commit 9d5da86
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ jobs:
- name: Test with pytest
run: |
python -m poetry run pytest --cov deep_quality_estimation --cov-report=xml
# Add the following block to upload coverage to Codecov, requires a CODECOV_TOKEN secret to be set in the repository
# - name: Upload results to Codecov
# # Only upload to Codecov after a merge to the main branch
# if: github.ref == 'refs/heads/main' && github.event_name == 'push'
# uses: codecov/codecov-action@v4
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload results to Codecov
# Only upload to Codecov after a merge to the main branch
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 9d5da86

Please sign in to comment.