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

CodeCov report on PR's #2950

Closed
wants to merge 2 commits into from
Closed
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
7 changes: 5 additions & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
comment:
layout: "header, diff"
layout: " diff, flags, files"
behavior: default
require_changes: no
require_changes: false
require_base: false
require_head: true
hide_project_coverage: false
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ jobs:
poetry install -E "askar bbs"
- name: Tests
run: |
poetry run pytest 2>&1 | tee pytest.log
poetry run pytest --cov=./ --cov-report=xml 2>&1 | tee pytest.log
PYTEST_EXIT_CODE=${PIPESTATUS[0]}
if grep -Eq "RuntimeWarning: coroutine .* was never awaited" pytest.log; then
echo "Failure: Detected unawaited coroutine warning in pytest output."
exit 1
fi
exit $PYTEST_EXIT_CODE
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Loading