-
Notifications
You must be signed in to change notification settings - Fork 6
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
Update test dependencies and fix github actions cache. #21
Conversation
Codecov Report
@@ Coverage Diff @@
## main #21 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 9 3 -6
Lines 418 158 -260
Branches 48 35 -13
==========================================
- Hits 418 158 -260
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -27,15 +27,15 @@ jobs: | |||
- uses: actions/cache@v3 | |||
with: | |||
path: ~/.cache/pip | |||
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('setup.cfg') }} | |||
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to change that before, now setup.cfg
is static and rather useless.
pyproject.toml
Outdated
@@ -54,7 +54,7 @@ default_section = "THIRDPARTY" | |||
known_first_party = "goodconf" | |||
|
|||
[tool.pytest.ini_options] | |||
addopts = "--cov" | |||
addopts = "--cov=goodconf --cov-branch" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cover only goodconf
instead of tests as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having coverage on tests will show you if a test you wrote isn't being executed for some reason. Wouldn't that be helpful?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mhm good point, will push (although depending on whether features are activated via python version we might have to combine coverage output at some point :D)
f987c50
to
f22e775
Compare
No description provided.