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

add coverage report artifact and minimum coverage #68

Merged
merged 2 commits into from
Oct 17, 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
14 changes: 11 additions & 3 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,26 @@ jobs:
coverage run -m pytest
echo "# Python coverage report" >> $GITHUB_STEP_SUMMARY
coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
coverage html -d coverage -i
- name: Build documentation
run: |
make docs
if [ "$generateDocx" = "true" ]; then
make docs-docx
rm -rf docs/build/singlehtml
fi
- uses: actions/upload-artifact@v4
- name: Upload Documentation
uses: actions/upload-artifact@v4
with:
name: docs
path: |
./docs/build/
path: docs/build/
retention-days: 14
- name: Upload Coverage Report
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage
retention-days: 14

bmdscore:
runs-on: ubuntu-22.04
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ exclude_also = [
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
fail_under=96.7
precision=1

[tool.coverage.run]
include = [
Expand Down
2 changes: 0 additions & 2 deletions src/pybmds/bmdscore.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,9 @@ class python_nested_result:
cov: list[float]
fixedLSC: float
litter: nestedLitterData
max: float
model: nested_model
model_df: float
nparms: int
obsChiSq: float
parms: list[float]
reduced: nestedReducedData
srData: nestedSRData
Expand Down