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