@@ -3,7 +3,7 @@ name: CI Build
33
44on :
55 push :
6- branches : [main]
6+ branches : [ main ]
77 pull_request :
88
99jobs :
@@ -15,46 +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.12'
19+ - ' 3.11'
20+ - ' 3.10'
21+ - ' 3.9'
22+ - ' 3.8'
23+ - ' 3.7'
24+ - ' 3.6'
25+ - ' pypy3.10'
2626 env :
27- CI_LARGE_SOCKET_MODE_PAYLOAD_TESTING_DISABLED : " 1 "
28- CI_UNSTABLE_TESTS_SKIP_ENABLED : " 1 "
29- FORCE_COLOR : " 1 "
27+ CI_LARGE_SOCKET_MODE_PAYLOAD_TESTING_DISABLED : ' 1 '
28+ CI_UNSTABLE_TESTS_SKIP_ENABLED : ' 1 '
29+ FORCE_COLOR : ' 1 '
3030 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@v4
57- with :
58- token : ${{ secrets.CODECOV_TOKEN }}
59- # python setup.py validate generates the coverage file
60- files : ./coverage.xml
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@v4
57+ with :
58+ token : ${{ secrets.CODECOV_TOKEN }}
59+ # python setup.py validate generates the coverage file
60+ files : ./coverage.xml
61+
0 commit comments