Skip to content

Commit

Permalink
add coverage (#235)
Browse files Browse the repository at this point in the history
* add coverage

* fix ignore

* add extra line
  • Loading branch information
HarrisChu authored Nov 3, 2022
1 parent 6c7d682 commit 2c64858
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/run_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,15 @@ jobs:
run: |
docker-compose -f docker-compose.yaml up -d
sleep 45
pytest -s -v -k "not SSL"
pytest -s -v -k "not SSL" --cov=../nebula3 --cov-report=xml --cov-append
working-directory: tests
- name: Test SSL connection with pytest
run: |
enable_ssl=true docker-compose -f docker-compose-ssl.yaml up -d
sleep 45
pytest -s -v -k "SSL"
pytest -s -v -k "SSL" --cov=../nebula3 --cov-report=xml --cov-append
working-directory: tests
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./tests/coverage.xml
6 changes: 6 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ignore:
- "nebula3/common"
- "nebula3/fbthrift"
- "nebula3/meta"
- "nebula3/storage"
- "nebula3/graph"
1 change: 1 addition & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ wcwidth==0.2.5
# via prettytable
wheel==0.37.0
# via pip-tools
pytest-cov==4.0.0

# The following packages are considered to be unsafe in a requirements file:
# pip
Expand Down

0 comments on commit 2c64858

Please sign in to comment.