Skip to content

Commit 5778bf5

Browse files
fix: sanic dependencies for tests (#1320)
1 parent 260e9b9 commit 5778bf5

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,20 @@ jobs:
5353
- name: Install async dependencies
5454
run: |
5555
pip install -r requirements/async.txt
56-
- name: Run tests for HTTP Mode adapters (ASGI)
57-
run: |
58-
# Requires async test dependencies
59-
pytest tests/adapter_tests/asgi/ --junitxml=reports/test_adapter_asgi.xml
6056
- name: Run tests for Socket Mode adapters
6157
run: |
6258
# Requires async test dependencies
6359
pytest tests/adapter_tests/socket_mode/ --junitxml=reports/test_adapter_socket_mode.xml
64-
- name: Run tests for HTTP Mode adapters (asyncio-based libraries)
65-
run: |
66-
pytest tests/adapter_tests_async/ --junitxml=reports/test_adapter_async.xml
6760
- name: Install all dependencies
6861
run: |
6962
pip install -r requirements/testing.txt
63+
- name: Run tests for HTTP Mode adapters (ASGI)
64+
run: |
65+
# Requires async test dependencies
66+
pytest tests/adapter_tests/asgi/ --junitxml=reports/test_adapter_asgi.xml
67+
- name: Run tests for HTTP Mode adapters (asyncio-based libraries)
68+
run: |
69+
pytest tests/adapter_tests_async/ --junitxml=reports/test_adapter_async.xml
7070
- name: Run asynchronous tests
7171
run: |
7272
pytest tests/slack_bolt_async/ --junitxml=reports/test_slack_bolt_async.xml

requirements/adapter.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,14 @@ fastapi>=0.70.0,<1
1313
Flask>=1,<4
1414
Werkzeug>=2,<4
1515
pyramid>=1,<3
16+
17+
# Sanic and its dependencies
18+
# Note: Sanic imports tracerite with wild card versions
19+
tracerite<1.1.2; python_version<="3.8" # older versions of python are not compatible with tracerite>1.1.2
1620
sanic>=20,<21; python_version=="3.6"
1721
sanic>=21,<24; python_version>"3.6" and python_version<="3.8"
1822
sanic>=21,<26; python_version>"3.8"
23+
1924
starlette>=0.19.1,<1
2025
tornado>=6,<7
2126
uvicorn<1 # The oldest version can vary among Python runtime versions

0 commit comments

Comments
 (0)