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

chore: don't fail the build for having less than 100 percent coverage #32

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

nealrichardson
Copy link
Collaborator

I chose these numbers arbitrarily, happy to use other numbers, but this seems better than the default of failing the build for having less than 100% line coverage, which main already lacks so everything fails.

Copy link

github-actions bot commented Feb 19, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
364 315 87% 80% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: c991e15 by action🐍

@@ -42,4 +42,7 @@ jobs:
uses: orgoro/coverage@v3.1
with:
coverageFile: coverage.xml
thresholdAll: 0.8
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha, is not having this line what was producing the Threshold number being 0% on other PRs?

Overall Coverage

Lines Covered Coverage Threshold Status
353 304 86% 0% 🟢

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah maybe so? Turns out it wasn't what was failing the build

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why doesn't github have 🙃 in the quick reactions???

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make cov-xml passes/fails the build based on .coverage settings. This action is set to run if: always() to capture the report in the GitHub Pull Request overview. They should match, I'm surprised the integration isn't tighter.

Makefile Outdated
@@ -31,13 +31,13 @@ clean:
rm -rf .coverage .mypy_cache .pytest_cache .ruff_cache *.egg-info build dist htmlcov

cov:
$(PYTHON) -m coverage report
$(PYTHON) -m coverage report --fail-under=80
Copy link
Collaborator

@tdstein tdstein Feb 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to move this to .coveragerc.

@nealrichardson nealrichardson merged commit 8bdd1c6 into main Feb 20, 2024
7 checks passed
@nealrichardson nealrichardson deleted the cov-fail branch February 20, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants