Skip to content

Commit

Permalink
add coverage report artifact and minimum coverage (#68)
Browse files Browse the repository at this point in the history
* upload python artifact

* add fail under
  • Loading branch information
shapiromatron authored Oct 17, 2024
1 parent 6f90104 commit b16f7bb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
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

0 comments on commit b16f7bb

Please sign in to comment.