Skip to content
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

chore: upgrade blacksheep #1875

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,13 @@ jobs:
ACCEPT_EULA=Y sudo apt-get install -y msodbcsql18
- name: Run ci
run: make ci
- name: Test FastAPI Example
- name: Test FastAPI/Blacksheep Example
run: |
export DEST=examples/fastapi && PYTHONPATH=$DEST pytest $PYTEST_ARGS $DEST/_tests.py
PYTHONPATH=$DEST_FASTAPI pytest $PYTEST_ARGS $DEST_FASTAPI/_tests.py
PYTHONPATH=$DEST_BLACKSHEEP pytest $PYTEST_ARGS $DEST_BLACKSHEEP/_tests.py
env:
PYTHONDEVMODE: 1
PYTEST_ARGS: "-n auto --cov=tortoise --cov-append --tb=native -q"
- name: Test Blacksheep Example
if: matrix.python-version != '3.13'
run: PYTHONPATH=$DEST pytest $PYTEST_ARGS $DEST/_tests.py
env:
DEST: examples/blacksheep
DEST_FASTAPI: examples/fastapi
DEST_BLACKSHEEP: examples/blacksheep
PYTHONDEVMODE: 1
PYTEST_ARGS: "-n auto --cov=tortoise --cov-append --tb=native -q"
- name: Upload Coverage
Expand Down
1 change: 1 addition & 0 deletions examples/router.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This example to use router to implement read/write separation
"""

from tortoise import Model, Tortoise, fields, run_async


Expand Down
Loading