-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #946 from mlcommons/sarthakpati-patch-1
Added the option to upload coverage to codacy
- Loading branch information
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,10 +106,17 @@ jobs: | |
run: | | ||
pytest --cov=. --cov-report=xml --cov-append -k "update_version" | ||
- name: Upload coverage | ||
- name: Upload coverage to CodeCov | ||
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./coverage.xml | ||
flags: unittests | ||
flags: unittests | ||
|
||
- name: Upload coverage to Codacy | ||
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change | ||
uses: codacy/[email protected] | ||
with: | ||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
coverage-reports: ./coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters