Skip to content

Commit

Permalink
Update test coverage workflow with codecov (#30)
Browse files Browse the repository at this point in the history
Update test coverage workflow with codecov. PR can show the test coverage from codecov now.
  • Loading branch information
lu-wang-dl authored Feb 8, 2022
1 parent e2c654f commit 428be25
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/runtime-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,14 @@ jobs:
working-directory: runtime
- name: Test with pytest
run: |
python -m pytest --cache-clear --cov=databricks tests/
python -m pytest --cache-clear --cov=databricks --cov-report=xml tests/
working-directory: runtime
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
directory: runtime
env_vars: OS,PYTHON
fail_ci_if_error: true
flags: unittests
name: codecov-umbrella
verbose: true
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Databricks AutoML Package

[![codecov](https://codecov.io/gh/databricks/automl/branch/main/graph/badge.svg)](https://codecov.io/gh/databricks/automl)

0 comments on commit 428be25

Please sign in to comment.