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

WIP #1

Merged
merged 13 commits into from
May 3, 2024
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
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
interval: daily
groups:
all-actions:
patterns: [ "*" ]
28 changes: 26 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,37 @@ jobs:
- name: Install the project dependencies
run: |
pip install poetry
poetry install -E "askar bbs"
poetry install --all-extras
- name: Tests
run: |
poetry run pytest 2>&1 | tee pytest.log
poetry run pytest --cov --cov-report lcov --cov-report=term-missing:skip-covered 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: Coveralls Parrallel
uses: coverallsapp/github-action@v2
with:
parallel: true
flag-name: python-${{ inputs.python-version }}
- name: Pytest coverage comment
uses: MishaKav/[email protected]
with:
pytest-coverage-path: pytest.log
report-only-changed-files: true
code-coverage:
name: Generate code coverage report
runs-on: ${{ inputs.os }}
permissions:
pull-requests: write
needs: tests
if: ${{ always() }}
steps:
- name: Coveralls Finished
id: coveralls-finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "python-${{ inputs.python-version }}"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ coverage.xml
.hypothesis/
.pytest_cache/
test-reports/
coverage.lcov

# Translations
*.mo
Expand Down
1 change: 1 addition & 0 deletions aries_cloudagent/anoncreds/holder.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ async def store_credential(
credential_definition,
rev_reg_def,
)
print("TEST")
except AnoncredsError as err:
raise AnonCredsHolderError("Error processing received credential") from err

Expand Down