Skip to content

Commit

Permalink
chore: support python 3.13 (#1221)
Browse files Browse the repository at this point in the history
* chore: support python 3.13

* Update .github/workflows/tests.yml

Co-authored-by: Kazuhiro Sera <[email protected]>

---------

Co-authored-by: Kazuhiro Sera <[email protected]>
  • Loading branch information
WilliamBergamin and seratch authored Dec 16, 2024
1 parent ed32039 commit 5f4c847
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codecov.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.11"]
python-version: ["3.13"]
env:
BOLT_PYTHON_CODECOV_RUNNING: "1"
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
timeout-minutes: 20
strategy:
matrix:
python-version: ["3.12"]
python-version: ["3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
22 changes: 10 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ jobs:
timeout-minutes: 10
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
python-version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down Expand Up @@ -44,17 +52,9 @@ jobs:
- name: Run tests for HTTP Mode adapters (Django)
run: |
pytest tests/adapter_tests/django/
- name: Run tests for HTTP Mode adapters (Falcon 3.x)
- name: Run tests for HTTP Mode adapters (Falcon)
run: |
pytest tests/adapter_tests/falcon/
- name: Run tests for HTTP Mode adapters (Falcon 2.x)
run: |
# Falcon 2.x does not support Python 3.11 or newer
# See also: https://github.com/slackapi/bolt-python/issues/757
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 @@ -76,8 +76,6 @@ jobs:
pytest tests/adapter_tests/socket_mode/
- name: Run tests for HTTP Mode adapters (asyncio-based libraries)
run: |
# Falcon supports Python 3.11 since its v3.1.1
pip install "falcon>=3.1.1,<4"
pytest tests/adapter_tests_async/
- name: Run tests for HTTP Mode adapters (ASGI)
run: |
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
Expand Down

0 comments on commit 5f4c847

Please sign in to comment.