Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed May 3, 2024
1 parent 767549c commit 98084b0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,36 @@ 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 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 }}
code-coverage:
name: Generate code coverage report
runs-on: ${{ inputs.os }}
permissions:
pull-requests: write
needs: tests
if: ${{ always() }}
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "python-3.11"
- name: Comment on PR
uses: mshick/add-pr-comment@v2
with:
message: |
**Hello PR**
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

0 comments on commit 98084b0

Please sign in to comment.