Skip to content

Commit d17907f

Browse files
authored
Add Python 3.11 to the supported language versions (#751)
* Add Python 3.11 to the supported language versions * Exclude python 3.11 for Falcon tests
1 parent 82a98f6 commit d17907f

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/tests.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
timeout-minutes: 10
1212
strategy:
1313
matrix:
14-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
14+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
1515
env:
1616
# default: multiprocessing
1717
# threading is more stable on GitHub Actions
@@ -48,13 +48,19 @@ jobs:
4848
- name: Run tests for HTTP Mode adapters (Django)
4949
run: |
5050
pytest tests/adapter_tests/django/
51+
# TODO: Enable testing with Falcon 4.x + Python 3.11
52+
# See also: https://github.com/slackapi/bolt-python/issues/757
5153
- name: Run tests for HTTP Mode adapters (Falcon 3.x)
5254
run: |
53-
pytest tests/adapter_tests/falcon/
55+
if [ ${{ matrix.python-version }} != "3.11" ]; then
56+
pytest tests/adapter_tests/falcon/
57+
fi
5458
- name: Run tests for HTTP Mode adapters (Falcon 2.x)
5559
run: |
56-
pip install "falcon<3"
57-
pytest tests/adapter_tests/falcon/
60+
if [ ${{ matrix.python-version }} != "3.11" ]; then
61+
pip install "falcon<3"
62+
pytest tests/adapter_tests/falcon/
63+
fi
5864
- name: Run tests for HTTP Mode adapters (Flask)
5965
run: |
6066
pytest tests/adapter_tests/flask/
@@ -71,4 +77,9 @@ jobs:
7177
run: |
7278
pip install -e ".[async]"
7379
pip install "falcon>=3,<4"
80+
if [ ${{ matrix.python-version }} == "3.11" ]; then
81+
# TODO: Enable testing with Falcon 4.x + Python 3.11
82+
# See also: https://github.com/slackapi/bolt-python/issues/757
83+
rm -f tests/adapter_tests_async/test_async_falcon.py
84+
fi
7485
pytest tests/adapter_tests_async/

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
"Programming Language :: Python :: 3.8",
110110
"Programming Language :: Python :: 3.9",
111111
"Programming Language :: Python :: 3.10",
112+
"Programming Language :: Python :: 3.11",
112113
"Programming Language :: Python :: Implementation :: CPython",
113114
"License :: OSI Approved :: MIT License",
114115
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)