Skip to content

Commit 7cb24a5

Browse files
authored
chore: upgrade blacksheep (#1875)
1 parent 1d4d60b commit 7cb24a5

File tree

6 files changed

+341
-337
lines changed

6 files changed

+341
-337
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,13 @@ jobs:
6969
ACCEPT_EULA=Y sudo apt-get install -y msodbcsql18
7070
- name: Run ci
7171
run: make ci
72-
- name: Test FastAPI Example
72+
- name: Test FastAPI/Blacksheep Example
7373
run: |
74-
export DEST=examples/fastapi && PYTHONPATH=$DEST pytest $PYTEST_ARGS $DEST/_tests.py
74+
PYTHONPATH=$DEST_FASTAPI pytest $PYTEST_ARGS $DEST_FASTAPI/_tests.py
75+
PYTHONPATH=$DEST_BLACKSHEEP pytest $PYTEST_ARGS $DEST_BLACKSHEEP/_tests.py
7576
env:
76-
PYTHONDEVMODE: 1
77-
PYTEST_ARGS: "-n auto --cov=tortoise --cov-append --tb=native -q"
78-
- name: Test Blacksheep Example
79-
if: matrix.python-version != '3.13'
80-
run: PYTHONPATH=$DEST pytest $PYTEST_ARGS $DEST/_tests.py
81-
env:
82-
DEST: examples/blacksheep
77+
DEST_FASTAPI: examples/fastapi
78+
DEST_BLACKSHEEP: examples/blacksheep
8379
PYTHONDEVMODE: 1
8480
PYTEST_ARGS: "-n auto --cov=tortoise --cov-append --tb=native -q"
8581
- name: Upload Coverage

examples/router.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This example to use router to implement read/write separation
33
"""
4+
45
from tortoise import Model, Tortoise, fields, run_async
56

67

0 commit comments

Comments
 (0)