Skip to content

Commit

Permalink
codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
nlsschim committed Apr 23, 2024
1 parent 149bef9 commit 3ce6add
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,12 @@ jobs:
#flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
#exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest and coverage
run: |
pytest -vvv -cov=${{ env.PROJECT_NAME }} --cov-report=xml --cov-report=term diff_classifier/tests/
- name: Save coverage report as an artifact
uses: actions/upload-artifact@v2
with:
name: coverage-report
path: coverage.xml

- name: Test with pytest
run: |
pytest --cov=./ --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
Expand Down

0 comments on commit 3ce6add

Please sign in to comment.