-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Sunced | 14.10.2023 | 1 * skip migration break test * fix fastapi tests * remove redundant gh actions * sync with beanie | 14.10.2023 | 2 * changelog
- Loading branch information
1 parent
a6bb240
commit b63db0a
Showing
109 changed files
with
4,404 additions
and
1,333 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -2,29 +2,37 @@ name: Tests | |
on: [ pull_request ] | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
- uses: pre-commit/[email protected] | ||
run-tests: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ 3.7, 3.8, 3.9, 3.10.9, 3.11 ] | ||
python-version: [ 3.7, 3.8, 3.9, 3.10.6, 3.11 ] | ||
mongodb-version: [ 4.4, 5.0 ] | ||
pydantic-version: [ 1.10.0 ] | ||
pydantic-version: [ 1.10.12, 2.3 ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: pip | ||
cache-dependency-path: pyproject.toml | ||
- name: Start MongoDB | ||
uses: supercharge/mongodb-github-action@1.3.0 | ||
uses: supercharge/mongodb-github-action@1.8.0 | ||
with: | ||
mongodb-version: ${{ matrix.mongodb-version }} | ||
mongodb-replica-set: test-rs | ||
- name: install poetry | ||
run: pip install poetry | ||
- name: install dependencies | ||
run: poetry install | ||
- name: specify pydantic | ||
run: poetry add pydantic==${{ matrix.pydantic-version }} | ||
run: pip install .[test] | ||
- name: install pydantic | ||
run: pip install pydantic==${{ matrix.pydantic-version }} | ||
- name: run tests | ||
run: poetry run pytest | ||
run: pytest -v |
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 |
---|---|---|
|
@@ -184,4 +184,5 @@ docker-compose-aws.yml | |
tilt_modules | ||
|
||
# Poetry stuff | ||
poetry.lock | ||
poetry.lock | ||
.pdm-python |
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,20 +1,18 @@ | ||
repos: | ||
- repo: https://github.com/ambv/black | ||
rev: 22.3.0 | ||
- repo: https://github.com/psf/black | ||
rev: 23.9.1 | ||
hooks: | ||
- id: black | ||
language_version: python3.10 | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: v0.0.220 | ||
rev: v0.0.290 | ||
hooks: | ||
- id: ruff | ||
args: [ "--force-exclude" ] | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.910 | ||
rev: v1.5.1 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: | ||
- types-click | ||
- types-toml | ||
exclude: ^tests/ | ||
|
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
Oops, something went wrong.