-
Notifications
You must be signed in to change notification settings - Fork 25
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 Dependabot to the repository #275
Conversation
Add management of action versions for github-actions. Update directory for pip ecosystem.
Codecov Report
@@ Coverage Diff @@
## master #275 +/- ##
=======================================
Coverage 86.20% 86.20%
=======================================
Files 52 52
Lines 5661 5661
=======================================
Hits 4880 4880
Misses 781 781 |
You'll need to "pin" the versions of the requirements in all your requirements files for dependabot to work. |
@akaszynski Oh so Dependabot will only deal with pinned down dependencies. The thing is we do not necessarily want to pin down all of our dependencies. I understand this is maybe best practice, but IMO it might create more versioning conflicts when someone tries to install our package along with another one. |
Agreed 100%. PyAnsys packages should have loose requirements (or as loose as possible) to ensure multiple packages can work in the same environment.
Absolutely. Anything in your
That's one way of ensuring that upstream dependencies don't break your current project. However, even though it's a potential risk I'd instead only a minimum version requirement. For example, So, at this point you're probably asking, why use dependabot at all since, as you stated, it only works with "pinned down" dependencies.
It works with fully pinned or those with "upper limits" like By pinning down This gives you a chance to either patch the issue due to the upstream changes, or provide an upper bound for your Ping me on teams if we need to discuss this further, or if our docs at https://dev.docs.pyansys.com/ need to include this discussion. (actually, there already is an issue at ansys/pyansys-dev-guide#125). |
FYI: Dependabot won't trigger until this PR is merged. |
requirements_test.txt
Outdated
@@ -1,7 +1,7 @@ | |||
pytest==7.1.2 | |||
pytest-cov==3.0.0 | |||
pytest-rerunfailures==10.2 | |||
matplotlib==3.5.2 | |||
matplotlib==3.2 |
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.
Dependabot will try to upgrade this BTW. If something's breaking, we should support it.
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.
@akaszynski Yes, I also think it is a bad idea to restrain the version of matplotlib. This was to check whether the pipeline failure came from this (apparently it does not).
No description provided.