Skip to content

Commit

Permalink
Handle more coverage errors (#211)
Browse files Browse the repository at this point in the history
* Handle more coverage errors

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
blink1073 and pre-commit-ci[bot] committed Oct 16, 2023
1 parent b9f7419 commit c454f13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/actions/report-coverage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ runs:
- name: Combine coverage & fail if it's <${{inputs.fail_under}}.
shell: bash
run: |
set -eux
python -Iim coverage combine || true
python -Im coverage html --skip-covered --skip-empty
python -Iim coverage html --skip-covered --skip-empty
# Report and write to summary.
python -Im coverage report | sed 's/^/ /' >> $GITHUB_STEP_SUMMARY
python -Iim coverage report | sed 's/^/ /' >> $GITHUB_STEP_SUMMARY
# Report again and fail if under threshold
python -Im coverage report --fail-under=${{inputs.fail_under}}
python -Iim coverage report --fail-under=${{inputs.fail_under}}
- name: Upload HTML report if check failed.
uses: actions/upload-artifact@v3
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@jupyterlab/maintainer-tools",
"version": "0.24.1",
"private": true
"name": "@jupyterlab/maintainer-tools",
"version": "0.24.1",
"private": true
}

0 comments on commit c454f13

Please sign in to comment.