Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add coverage #235

Merged
merged 3 commits into from
Nov 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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