forked from openwallet-foundation/acapy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from jamshale/codecov
WIP
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,10 +28,14 @@ jobs: | |
poetry install -E "askar bbs" | ||
- name: Tests | ||
run: | | ||
poetry run pytest 2>&1 | tee pytest.log | ||
poetry run pytest --cov 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/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |