Skip to content

Commit

Permalink
Merge pull request #8 from jamshale/codecov
Browse files Browse the repository at this point in the history
WIP
  • Loading branch information
jamshale authored May 14, 2024
2 parents bfe7852 + 1dc7599 commit 3441447
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ jobs:
with:
python-version: "3.9"
os: "ubuntu-latest"
secrets: inherit
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
os:
required: true
type: string
secrets:
CODECOV_TOKEN:
required: true

jobs:
tests:
Expand All @@ -28,7 +31,7 @@ jobs:
poetry install -E "askar bbs"
- name: Tests
run: |
poetry run pytest --cov 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."
Expand Down
3 changes: 2 additions & 1 deletion aries_cloudagent/anoncreds/holder.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
CredentialRevocationState,
Presentation,
PresentCredentials,
create_link_secret,
W3cCredential,
create_link_secret,
)
from aries_askar import AskarError, AskarErrorCode

Expand Down Expand Up @@ -572,6 +572,7 @@ def get_rev_state(cred_id: str, detail: dict):
cred = creds[cred_id]
rev_reg_id = cred.rev_reg_id
timestamp = detail.get("timestamp") if rev_reg_id else None
print("Test")
rev_state = None
if timestamp:
if not rev_states or rev_reg_id not in rev_states:
Expand Down

0 comments on commit 3441447

Please sign in to comment.