-
Notifications
You must be signed in to change notification settings - Fork 16.3k
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
core[patch]: pydantic ^2.5 #26396
Merged
+361
−1,050
Merged
core[patch]: pydantic ^2.5 #26396
Changes from 44 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
7573c81
core[patch]: pydantic ^2.5
baskaryan 2828517
test pydantic
baskaryan ccc24a6
undo
baskaryan ff6ebc7
nit
baskaryan 7e5bc32
fix
baskaryan 81e7920
install requests
baskaryan 4d6a046
fix
baskaryan fd80171
fix
baskaryan 105986e
fix
baskaryan 29436fe
fix
baskaryan 0e30424
fix
baskaryan 5834433
fix
baskaryan f17b059
max patch
baskaryan 6cfa0f1
fix
baskaryan be70b4a
nit
baskaryan eb8d9e2
Merge branch 'v0.3rc' into bagatur/pydantic_2_5
baskaryan 7eb3878
rm enum
baskaryan 1e02d07
fix
baskaryan d388cdd
fmt
baskaryan 13fd954
fmt
baskaryan 6771d5b
normalize
baskaryan 19d87e4
more
baskaryan 93f274f
snapshots
baskaryan 2012ea4
fmt
baskaryan 1b2056c
redo
baskaryan e328f9d
update
baskaryan ba2b9cd
fmt
baskaryan 83f869c
rm warning error
baskaryan 9b9aba4
fix
baskaryan 3bd5637
fmt
baskaryan 71cc697
fix
baskaryan a34cad1
fix
baskaryan 0e6dae9
fix
baskaryan 2da709c
fix
baskaryan 9c3e403
fix
baskaryan ae6f6d9
fix
baskaryan 7116827
use action output
baskaryan 2f880c0
Merge branch 'v0.3rc' into bagatur/pydantic_2_5
baskaryan 70d034a
fix
baskaryan 47cea6e
clear output
baskaryan eeb2564
fix
baskaryan 2fe4551
nit
baskaryan 3cfe268
nit
baskaryan 0663d9d
fix
baskaryan 399cfc9
unskip
baskaryan f3067a1
undo
baskaryan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: test pydantic intermediate versions | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
working-directory: | ||
required: true | ||
type: string | ||
description: "From which folder this pipeline executes" | ||
python-version: | ||
required: false | ||
type: string | ||
description: "Python version to use" | ||
default: "3.11" | ||
pydantic-version: | ||
required: true | ||
type: string | ||
description: "Pydantic version to test." | ||
|
||
env: | ||
POETRY_VERSION: "1.7.1" | ||
|
||
jobs: | ||
build: | ||
defaults: | ||
run: | ||
working-directory: ${{ inputs.working-directory }} | ||
runs-on: ubuntu-latest | ||
name: "make test # pydantic: ~=${{ inputs.pydantic-version }}, python: ${{ inputs.python-version }}, " | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ inputs.python-version }} + Poetry ${{ env.POETRY_VERSION }} | ||
uses: "./.github/actions/poetry_setup" | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
poetry-version: ${{ env.POETRY_VERSION }} | ||
working-directory: ${{ inputs.working-directory }} | ||
cache-key: core | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: poetry install --with test | ||
|
||
- name: Overwrite pydantic version | ||
shell: bash | ||
run: poetry run pip install pydantic~=${{ inputs.pydantic-version }} | ||
|
||
- name: Run core tests | ||
shell: bash | ||
run: | | ||
make test | ||
|
||
- name: Ensure the tests did not create any additional files | ||
shell: bash | ||
run: | | ||
set -eu | ||
|
||
STATUS="$(git status)" | ||
echo "$STATUS" | ||
|
||
# grep will exit non-zero if the target message isn't found, | ||
# and `set -e` above will cause the step to fail. | ||
echo "$STATUS" | grep 'nothing to commit, working tree clean' |
Oops, something went wrong.
Oops, something went wrong.
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.
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.
not necessary?
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.
just moves it to end so it checks min tests also