Skip to content

Commit

Permalink
chore: upgrade blacksheep (#1875)
Browse files Browse the repository at this point in the history
  • Loading branch information
waketzheng authored Feb 6, 2025
1 parent 1d4d60b commit 7cb24a5
Show file tree
Hide file tree
Showing 6 changed files with 341 additions and 337 deletions.
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

0 comments on commit 7cb24a5

Please sign in to comment.