Skip to content

Commit

Permalink
Add Python 3.11 to the supported language versions (#751)
Browse files Browse the repository at this point in the history
* Add Python 3.11 to the supported language versions
* Exclude python 3.11 for Falcon tests
  • Loading branch information
seratch authored Nov 4, 2022
1 parent 82a98f6 commit d17907f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
timeout-minutes: 10
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
env:
# default: multiprocessing
# threading is more stable on GitHub Actions
Expand Down Expand Up @@ -48,13 +48,19 @@ jobs:
- name: Run tests for HTTP Mode adapters (Django)
run: |
pytest tests/adapter_tests/django/
# TODO: Enable testing with Falcon 4.x + Python 3.11
# See also: https://github.com/slackapi/bolt-python/issues/757
- name: Run tests for HTTP Mode adapters (Falcon 3.x)
run: |
pytest tests/adapter_tests/falcon/
if [ ${{ matrix.python-version }} != "3.11" ]; then
pytest tests/adapter_tests/falcon/
fi
- name: Run tests for HTTP Mode adapters (Falcon 2.x)
run: |
pip install "falcon<3"
pytest tests/adapter_tests/falcon/
if [ ${{ matrix.python-version }} != "3.11" ]; then
pip install "falcon<3"
pytest tests/adapter_tests/falcon/
fi
- name: Run tests for HTTP Mode adapters (Flask)
run: |
pytest tests/adapter_tests/flask/
Expand All @@ -71,4 +77,9 @@ jobs:
run: |
pip install -e ".[async]"
pip install "falcon>=3,<4"
if [ ${{ matrix.python-version }} == "3.11" ]; then
# TODO: Enable testing with Falcon 4.x + Python 3.11
# See also: https://github.com/slackapi/bolt-python/issues/757
rm -f tests/adapter_tests_async/test_async_falcon.py
fi
pytest tests/adapter_tests_async/
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
Expand Down

0 comments on commit d17907f

Please sign in to comment.