From 1ec41d9a9d8303abe69c7de90bc3a0ff7821ae70 Mon Sep 17 00:00:00 2001 From: jamshale Date: Tue, 14 May 2024 20:17:25 +0000 Subject: [PATCH 1/2] WIP Signed-off-by: jamshale --- aries_cloudagent/anoncreds/holder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aries_cloudagent/anoncreds/holder.py b/aries_cloudagent/anoncreds/holder.py index 957a8eb745..35414cdf10 100644 --- a/aries_cloudagent/anoncreds/holder.py +++ b/aries_cloudagent/anoncreds/holder.py @@ -14,8 +14,8 @@ CredentialRevocationState, Presentation, PresentCredentials, - create_link_secret, W3cCredential, + create_link_secret, ) from aries_askar import AskarError, AskarErrorCode @@ -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: From 1dc75995311975aa95eae5d36894dfa6712765e5 Mon Sep 17 00:00:00 2001 From: jamshale Date: Tue, 14 May 2024 20:38:21 +0000 Subject: [PATCH 2/2] WIP Signed-off-by: jamshale --- .github/workflows/pr-tests.yml | 1 + .github/workflows/tests.yml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 5de0998c36..c0946c3708 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -14,3 +14,4 @@ jobs: with: python-version: "3.9" os: "ubuntu-latest" + secrets: inherit diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ec0fe41b32..f5cdb6d5c7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,6 +9,9 @@ on: os: required: true type: string + secrets: + CODECOV_TOKEN: + required: true jobs: tests: @@ -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."