Skip to content

Commit 0475948

Browse files
chore: support python 3.13
1 parent 5c57a32 commit 0475948

File tree

2 files changed

+44
-43
lines changed

2 files changed

+44
-43
lines changed

.github/workflows/ci-build.yml

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI Build
33

44
on:
55
push:
6-
branches: [ main ]
6+
branches: [main]
77
pull_request:
88

99
jobs:
@@ -15,47 +15,47 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
python-version:
18-
- '3.12'
19-
- '3.11'
20-
- '3.10'
21-
- '3.9'
22-
- '3.8'
23-
- '3.7'
24-
- '3.6'
25-
- 'pypy3.10'
18+
- "3.13"
19+
- "3.12"
20+
- "3.11"
21+
- "3.10"
22+
- "3.9"
23+
- "3.8"
24+
- "3.7"
25+
- "3.6"
26+
- "pypy3.10"
2627
env:
27-
CI_LARGE_SOCKET_MODE_PAYLOAD_TESTING_DISABLED: '1'
28-
CI_UNSTABLE_TESTS_SKIP_ENABLED: '1'
29-
FORCE_COLOR: '1'
28+
CI_LARGE_SOCKET_MODE_PAYLOAD_TESTING_DISABLED: "1"
29+
CI_UNSTABLE_TESTS_SKIP_ENABLED: "1"
30+
FORCE_COLOR: "1"
3031
steps:
31-
- uses: actions/checkout@v4
32-
- name: Set up Python ${{ matrix.python-version }}
33-
uses: actions/setup-python@v5
34-
with:
35-
python-version: ${{ matrix.python-version }}
36-
cache: pip
37-
- name: Install dependencies
38-
run: |
39-
pip install -U pip setuptools wheel
40-
pip install -r requirements/testing.txt
41-
pip install -r requirements/optional.txt
42-
- name: Run codegen
43-
run: |
44-
python setup.py codegen
45-
- name: Run validation (black/flake8/pytest)
46-
run: |
47-
python setup.py validate
48-
- name: Run tests for SQLAlchemy v1.4 (backward-compatibility)
49-
run: |
50-
# Install v1.4 for testing
51-
pip install "SQLAlchemy>=1.4,<2"
52-
python setup.py unit_tests --test-target tests/slack_sdk/oauth/installation_store/test_sqlalchemy.py && \
53-
python setup.py unit_tests --test-target tests/slack_sdk/oauth/state_store/test_sqlalchemy.py
54-
- name: Run codecov (only 3.9)
55-
if: startsWith(matrix.python-version, '3.9')
56-
uses: codecov/codecov-action@v5
57-
with:
58-
token: ${{ secrets.CODECOV_TOKEN }}
59-
# python setup.py validate generates the coverage file
60-
files: ./coverage.xml
61-
32+
- uses: actions/checkout@v4
33+
- name: Set up Python ${{ matrix.python-version }}
34+
uses: actions/setup-python@v5
35+
with:
36+
python-version: ${{ matrix.python-version }}
37+
cache: pip
38+
- name: Install dependencies
39+
run: |
40+
pip install -U pip setuptools wheel
41+
pip install -r requirements/testing.txt
42+
pip install -r requirements/optional.txt
43+
- name: Run codegen
44+
run: |
45+
python setup.py codegen
46+
- name: Run validation (black/flake8/pytest)
47+
run: |
48+
python setup.py validate
49+
- name: Run tests for SQLAlchemy v1.4 (backward-compatibility)
50+
run: |
51+
# Install v1.4 for testing
52+
pip install "SQLAlchemy>=1.4,<2"
53+
python setup.py unit_tests --test-target tests/slack_sdk/oauth/installation_store/test_sqlalchemy.py && \
54+
python setup.py unit_tests --test-target tests/slack_sdk/oauth/state_store/test_sqlalchemy.py
55+
- name: Run codecov (only 3.9)
56+
if: startsWith(matrix.python-version, '3.9')
57+
uses: codecov/codecov-action@v5
58+
with:
59+
token: ${{ secrets.CODECOV_TOKEN }}
60+
# python setup.py validate generates the coverage file
61+
files: ./coverage.xml

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ classifiers = [
3434
"Programming Language :: Python :: 3.10",
3535
"Programming Language :: Python :: 3.11",
3636
"Programming Language :: Python :: 3.12",
37+
"Programming Language :: Python :: 3.13",
3738
"Programming Language :: Python :: Implementation :: CPython",
3839
"Programming Language :: Python :: Implementation :: PyPy",
3940
]

0 commit comments

Comments
 (0)