Skip to content

Commit

Permalink
Merge pull request #1168 from gridsingularity/feature/D3ASIM-3461
Browse files Browse the repository at this point in the history
D3ASIM-3461: Check test coverage compliance using Codecov
  • Loading branch information
fievelk authored Jun 24, 2021
2 parents 4247c16 + 73ff317 commit 5031252
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/d3a_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ jobs:
export LD_LIBRARY_PATH=$HOME/solc/usr/lib:$LD_LIBRARY_PATH
pip install tox
tox -e $TOXENV --verbose
- name: Check coverage with Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
verbose: true
10 changes: 10 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
coverage:
status:
project:
default:
target: auto # Compare coverage to the previous base commit (PR base or parent commit)
informational: false # If true, status will always pass

comment:
layout: "diff"
behavior: default
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ commands =
flake8
coverage run -m py.test {posargs:tests}
coverage combine
coverage xml
coverage report
behave --tags=-slow --tags=-disabled integration_tests

Expand Down

0 comments on commit 5031252

Please sign in to comment.