-
Notifications
You must be signed in to change notification settings - Fork 4
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 CI/CD workflows for updating dependencies #351
Update CI/CD workflows for updating dependencies #351
Conversation
Dependabot: - Repeat the jobs with 'release/pydantic-v1-support' as the target branch. CI - Check dependencies: - Add a user input when manually running the workflow to determine the target branch to check pyproject.toml dependencies in as well as open a PR against.
Add a new job to also run the callable SINTEF/ci-cd workflow against the 'release/pydantic-v1-support' branch. Change the use of the `workflow_dispatch` input 'target_branch' so that it's checked against the triggering event being 'schedule'. Essentially, now: - When triggered by 'schedule', both jobs should run, creating 2 PRs, one against 'ci/dependabot-updates' & one against 'release/pydantic-v1-support'. - When manually triggered, only one of the jobs should run, creating either a PR against 'ci/dependabot-updates' OR against 'release/pydantic-v1-support'. Both jobs should always still only run for the original repository, i.e., not for forks - this is unchanged from previous iterations.
Codecov ReportAll modified lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #351 +/- ##
==========================================
- Coverage 82.16% 82.08% -0.09%
==========================================
Files 44 44
Lines 1211 1211
==========================================
- Hits 995 994 -1
- Misses 216 217 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
approved but address these comments. Also add a reference to the relevant section(s) to the CI/CD docs
Also, fix ignore rules by: - Using `=` instead `==` to denote 'version' values. - Only add ignore rules for dependencies with an explicit upper limit.
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.
Comments are already good enough. I've added some suggested changes use/ignore them to your preference
Co-authored-by: Daniel Marchand <Daniel.Marchand@sintef.no>
Description:
Closes #349
Dependabot
Repeat the jobs with 'release/pydantic-v1-support' as the target branch.
CI - Check dependencies
Add a user input when manually running the workflow to determine the target branch to check pyproject.toml dependencies in as well as open a PR against.
Add a new job to also run the callable SINTEF/ci-cd workflow against the 'release/pydantic-v1-support' branch.
Change the use of the
workflow_dispatch
input 'target_branch' so that it's checked against the triggering event being 'schedule'.Essentially, now:
'release/pydantic-v1-support'.
Both jobs should always still only run for the original repository, i.e., not for forks - this is unchanged from previous iterations.
Future
Changes are already in the works for the ignore rules in CI - Check dependencies when migrating to pydantic v2 (see #330), the split into two CI jobs here will accommodate this difference as well.
This means, depending on the merge order, either this PR or #330 should be updated accordingly.
Type of change:
Checklist for the reviewer:
This checklist should be used as a help for the reviewer.