@@ -2,60 +2,62 @@ name: CI Check for bk-storages
22
33on :
44 push :
5- branches : [ master, staging ]
5+ branches : [master, staging]
66 paths :
7- - ' sdks/bk-storages/**'
7+ - " sdks/bk-storages/**"
88 pull_request :
9- branches : [ master, staging ]
9+ branches : [master, staging]
1010 paths :
11- - ' sdks/bk-storages/**'
11+ - " sdks/bk-storages/**"
1212 workflow_dispatch :
13-
1413jobs :
1514 check :
1615 runs-on : macos-latest
1716 steps :
18- - uses : actions/checkout@v2
19- - name : Set up Python
20- uses : actions/setup-python@v2
21- with :
22- python-version : 3.7
23- - name : Format with isort
24- run : |
25- pip install isort==5.9.2
26- isort sdks/ --settings-path=sdks/bk-storages/pyproject.toml
27- - name : Format with black
28- run : |
29- pip install black==21.7b0 click==8.0.4
30- black sdks/ --config=sdks/bk-storages/pyproject.toml
31- - name : Lint with flake8
32- run : |
33- pip install pyproject-flake8
34- pflake8 sdks/ --config=sdks/bk-storages/pyproject.toml
35- - name : Lint with mypy
36- run : |
37- pip install mypy==0.910 types-requests==2.25.0 types-setuptools==57.0.0 types-dataclasses==0.1.5 types-redis==3.5.4 types-PyMySQL==1.0.0 types-six==0.1.7 types-toml==0.1.3
38- mypy sdks/bk-storages --config-file=sdks/bk-storages/pyproject.toml
17+ - uses : actions/checkout@v2
18+ - name : Set up Python
19+ uses : actions/setup-python@v2
20+ with :
21+ python-version : 3.11
22+ - name : Format with isort
23+ working-directory : sdks/bk-storages
24+ run : |
25+ pip install isort==5.12.0
26+ isort . --settings-path=pyproject.toml
27+ - name : Format with black
28+ working-directory : sdks/bk-storages
29+ run : |
30+ pip install black==23.7.0 click==8.1.6
31+ black . --config=pyproject.toml
32+ - name : Lint with flake8
33+ working-directory : sdks/bk-storages
34+ run : |
35+ pip install flake8==4.0.1 pyproject-flake8==0.0.1a5
36+ pflake8 . --config=pyproject.toml
37+ - name : Lint with mypy
38+ working-directory : sdks/bk-storages
39+ run : |
40+ pip install mypy==0.910 types-requests==2.31.0.2 types-setuptools==57.4.18 types-dataclasses==0.1.7 types-redis==3.5.18 types-PyMySQL==1.1.0.1 types-six==0.1.9 types-toml==0.1.5
41+ mypy . --config-file=pyproject.toml
3942 test :
4043 strategy :
4144 fail-fast : false
4245 matrix :
43- python-version : ['3.7', '3.8', '3.9', '3.10']
44- poetry-version : [1.3.2]
46+ python-version : ["3.8", "3.9", "3.10", "3.11"]
4547 os : [ubuntu-latest, macos-latest]
4648 runs-on : ${{ matrix.os }}
4749 steps :
48- - uses : actions/checkout@v2
49- - name : Set up Python
50- uses : actions/setup-python@v2
51- with :
52- python-version : ${{ matrix.python-version }}
53- - name : Set up Poetry
54- uses : abatilo/actions-poetry@v2.1 .0
55- with :
56- poetry-version : ${{ matrix.poetry-version }}
57- - name : Test bk-storages
58- run : |
59- cd sdks/bk-storages
60- poetry install
61- poetry run pytest
50+ - uses : actions/checkout@v2
51+ - name : Set up Python
52+ uses : actions/setup-python@v2
53+ with :
54+ python-version : ${{ matrix.python-version }}
55+ - name : Set up Poetry
56+ uses : abatilo/actions-poetry@v2.3 .0
57+ with :
58+ poetry-version : 1.5.1
59+ - name : Test bk-storages
60+ run : |
61+ cd sdks/bk-storages
62+ poetry install
63+ poetry run pytest
0 commit comments