-
Notifications
You must be signed in to change notification settings - Fork 0
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
build(deps): bump pydantic from 2.8.2 to 2.10.2 in /api #161
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This pull request introduces several updates to the project, focusing on improving the CI/CD pipeline, adding support for a new API, and enhancing the overall project configuration and documentation. The most important changes include modifications to the GitHub Actions workflows, updates to the Docker configuration, and enhancements to the environment and dependency management. Move the API to this repository, improve the Docker and CI configurations, and enhance the testing setup with coverage reporting. Simplify the Sensor model and update field names for better clarity. ### CI/CD Pipeline Enhancements: * [`.github/workflows/main.yml`](diffhunk://#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3R17-R54): Added a new job to detect changes and updated the workflow to include the new API service in the build and test processes. [[1]](diffhunk://#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3R17-R54) [[2]](diffhunk://#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3R104) [[3]](diffhunk://#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3L91-R114) [[4]](diffhunk://#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3L113-R136) [[5]](diffhunk://#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3L144-R177) * [`.github/workflows/tests.yml`](diffhunk://#diff-1db27d93186e46d3b441ece35801b244db8ee144ff1405ca27a163bfe878957fR5-R14): Updated the tests workflow to conditionally run tests for the new API service based on the detected changes. [[1]](diffhunk://#diff-1db27d93186e46d3b441ece35801b244db8ee144ff1405ca27a163bfe878957fR5-R14) [[2]](diffhunk://#diff-1db27d93186e46d3b441ece35801b244db8ee144ff1405ca27a163bfe878957fR57-R101) ### Docker Configuration: * [`Dockerfile`](diffhunk://#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557L33-R35): Added configurations for setting up and running the development and test environments with Xdebug. [[1]](diffhunk://#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557L33-R35) [[2]](diffhunk://#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557L43-R46) * [`api/Dockerfile`](diffhunk://#diff-21ee93e31c9cec7a5f33b680622da377c451b62b6c44eac6d9550eade41beb47R1-R61): Introduced a new Dockerfile for the API service, including separate stages for dependencies, development, and production. ### Environment and Dependency Management: * [`.env.example`](diffhunk://#diff-a3046da0d15a27e89f2afe639b25748a7ad4d9290af3e7b1b6c1a5533c8f0a8cL8-R11): Updated the database user and password configuration for better security. * `api/requirements.txt` and `api/requirements-dev.txt`: Added necessary dependencies for the FastAPI service and testing. [[1]](diffhunk://#diff-f380e1392f38d13c3831f35c9f505277739b484c035bc791c21cc6d081845607R1-R14) [[2]](diffhunk://#diff-db780fd4b730d61b6b337401dde9dd8019689d11865358769ed489c22aef7dcbR1-R5) ### Project Configuration: * [`.github/dependabot.yml`](diffhunk://#diff-dd4fbda47e51f1e35defb9275a9cd9c212ecde0b870cba89ddaaae65c5f3cd28R15-R21): Added configuration for Dependabot to manage Python dependencies for the new API service. * [`.github/file-filters.yml`](diffhunk://#diff-e0c6dc9b4726a064d96caecea748af61ebf97fc1fdd20980f35fe9be1e5d3c0cR1-R4): Introduced file filters for the new API service to optimize the CI/CD process. * [`.vscode/settings.json`](diffhunk://#diff-a5de3e5871ffcc383a2294845bd3df25d3eeff6c29ad46e3a396577c413bf357L3-R4): Updated VS Code settings to include schema validation for the new Docker Compose file. ### Documentation: * [`README.md`](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L7-R26): Enhanced the installation instructions to include environment variable setup and access URLs for different parts of the application. ## Resources - https://github.com/codecov/example-php/blob/main/.github/workflows/ci.yml - https://github.com/codecov/example-python/blob/main/.github/workflows/ci.yml - https://docs.github.com/en/actions/sharing-automations/reusing-workflows - https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/using-jobs-in-a-workflow#defining-prerequisite-jobs - https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions#hashfiles - https://gist.github.com/GuillaumeFalourd/1b3755612299523e2602bdc35df7441b - https://github.com/codecov/codecov-action - (Not yet) https://github.com/iamtodor/demo-github-actions-python-linter-configuration/tree/main - https://github.com/php-actions/composer?tab=readme-ov-file#passing-arguments - https://github.com/PhpGt/Database/blob/master/.github/workflows/ci.yml - https://stackoverflow.com/a/75735736 - https://github.com/dorny/paths-filter/?tab=readme-ov-file#paths-changes-filter - (Not yet) https://dev.to/jackmiras/xdebug-in-vscode-with-docker-379l - https://github.com/sebastianbergmann/phpunit/blob/main/phpunit.xml - https://github.com/sebastianbergmann/phpunit/blob/main/.github/workflows/ci.yaml#L187-L226 - (Not yet) https://github.com/sebastianbergmann/php-code-coverage - https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/running-variations-of-jobs-in-a-workflow - https://github.com/reproducible-containers/buildkit-cache-dance - (Not yet) https://docs.docker.com/engine/swarm/services/ - (Not yet) https://docs.docker.com/engine/swarm/stack-deploy/
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.8.2 to 2.10.2. - [Release notes](https://github.com/pydantic/pydantic/releases) - [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md) - [Commits](pydantic/pydantic@v2.8.2...v2.10.2) --- updated-dependencies: - dependency-name: pydantic dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
dependabot
bot
added
kind/dependencies
Categorizes issue or PR as related to dependencies.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
labels
Dec 3, 2024
dependabot
bot
requested review from
elbacalau,
24Victor,
Chuck-D-Norris,
oriolreverte36 and
XavierChao
December 3, 2024 02:00
Superseded by #170. |
0x1026
removed
the
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
label
Dec 4, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps pydantic from 2.8.2 to 2.10.2.
Release notes
Sourced from pydantic's releases.
... (truncated)
Changelog
Sourced from pydantic's changelog.
... (truncated)
Commits
fe32515
Prepare for v2.10.2 release (#10982)226cfaf
HideBaseModel.__replace__
definition from type checkers (#10979)02229a6
hashing support for urls (#10975)a9cf39c
Fix type hint ofField.default
to be compatible with Python 3.8 and 3.9 (#1...869eafd
Support serialization as any forSecret
types andUrl
types (#10947)7c0ed72
Do not evaluate annotations for private fields (#10962)d6fc7fc
Only evaluateFieldInfo
annotations if required during schema building (#10...17e60fa
spacing369b355
remove typo4c75404
Prepare for v2.10.1 release (#10939)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)