-
-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dto-codegen
- Loading branch information
Showing
42 changed files
with
2,136 additions
and
2,988 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,21 +1,29 @@ | ||
### Pull Request Checklist | ||
<!-- | ||
By submitting this pull request, you agree to: | ||
- follow [Litestar's Code of Conduct](https://github.com/litestar-org/.github/blob/main/CODE_OF_CONDUCT.md) | ||
- follow [Litestar's contribution guidelines](https://github.com/litestar-org/.github/blob/main/CONTRIBUTING.md) | ||
- follow the [PSFs's Code of Conduct](https://www.python.org/psf/conduct/) | ||
--> | ||
|
||
[//]: # "By submitting this issue, you agree to:" | ||
[//]: # "- follow Litestar's [Code of Conduct](https://github.com/litestar-org/.github/blob/main/CODE_OF_CONDUCT.md)" | ||
[//]: # "- follow Litestar's [Contribution Guidelines](https://litestar.dev/community/contribution-guide)" | ||
### Pull Request Checklist | ||
|
||
- [ ] New code has 100% test coverage | ||
- [ ] (If applicable) The prose documentation has been updated to reflect the changes introduced by this PR | ||
- [ ] (If applicable) The reference documentation has been updated to reflect the changes introduced by this PR | ||
- [ ] Pre-Commit Checks were ran and passed | ||
- [ ] Tests were ran and passed | ||
|
||
### Description | ||
[//]: # "Please describe your pull request for new release changelog purposes" | ||
[//]: # "Example: 'This pr adds the capability to use server-sent events, and documents it in the usage docs'" | ||
<!-- | ||
Please describe your pull request for new release changelog purposes | ||
--> | ||
|
||
- | ||
|
||
### Close Issue(s) | ||
[//]: # "Please add in issue numbers this pull request will close, if applicable" | ||
[//]: # "Examples: Fixes #4321 or Closes #1234" | ||
<!-- | ||
Please add in issue numbers this pull request will close, if applicable | ||
Examples: Fixes #4321 or Closes #1234 | ||
--> | ||
|
||
- |
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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 was deleted.
Oops, something went wrong.
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,75 @@ | ||
name: Test | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
python-version: | ||
required: true | ||
type: string | ||
pydantic-version: | ||
required: true | ||
type: string | ||
coverage: | ||
required: false | ||
type: boolean | ||
default: false | ||
os: | ||
required: false | ||
type: string | ||
default: "ubuntu-latest" | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ inputs.os }} | ||
timeout-minutes: 10 | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up python ${{ inputs.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
|
||
- uses: pdm-project/setup-pdm@v3 | ||
name: Set up PDM | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
allow-python-prereleases: false | ||
cache: true | ||
cache-dependency-path: | | ||
./pdm.lock | ||
- name: Install dependencies | ||
run: pdm install -G:all | ||
|
||
- if: ${{ inputs.pydantic-version == '1' }} | ||
name: Prepare for pydantic v1 | ||
run: pdm add --no-sync "pydantic>=1.10.11,<2" "piccolo" | ||
|
||
- if: ${{ inputs.pydantic-version == '2' }} | ||
name: Prepare for pydantic v2 | ||
run: pdm add --no-sync "pydantic>=2.3.0" "pydantic-extra-types>=2.0.0" | ||
|
||
- name: Sync dependencies | ||
run: pdm sync | ||
|
||
- name: Set PYTHONPATH | ||
run: echo "PYTHONPATH=$PWD" >> $GITHUB_ENV | ||
|
||
- name: Test | ||
if: ${{ !inputs.coverage }} | ||
run: pdm run pytest docs/examples tests -n auto | ||
|
||
- name: Test with coverage | ||
if: inputs.coverage | ||
run: pdm run pytest docs/examples tests --cov=litestar --cov-report=xml -n auto | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: inputs.coverage | ||
with: | ||
name: coverage-xml | ||
path: coverage.xml |
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 |
---|---|---|
|
@@ -29,3 +29,8 @@ target/ | |
/docs/_build/ | ||
coverage.* | ||
setup.py | ||
|
||
# pdm | ||
.pdm.toml | ||
.pdm-python | ||
.pdm-build/ |
Oops, something went wrong.