@@ -2,13 +2,13 @@ name: CI Check for bkpaas-auth
22
33on :
44 push :
5- branches : [ master ]
5+ branches : [master]
66 paths :
7- - ' sdks/bkpaas-auth/**'
7+ - " sdks/bkpaas-auth/**"
88 pull_request :
9- branches : [ master ]
9+ branches : [master]
1010 paths :
11- - ' sdks/bkpaas-auth/**'
11+ - " sdks/bkpaas-auth/**"
1212 workflow_dispatch :
1313 release :
1414 types : [published]
@@ -18,79 +18,83 @@ jobs:
1818 runs-on : macos-latest
1919 continue-on-error : true
2020 steps :
21- - uses : actions/checkout@v2
22- - name : Set up Python
23- uses : actions/setup-python@v2
24- with :
25- python-version : 3.7
26- - name : Format with isort
27- run : |
28- pip install isort==5.9.2
29- isort sdks/ --settings-path=sdks/bkpaas-auth/pyproject.toml
30- - name : Format with black
31- run : |
32- pip install black==21.7b0 click==8.0.4
33- black sdks/ --config=sdks/bkpaas-auth/pyproject.toml
34- - name : Lint with flake8
35- run : |
36- pip install flake8==4.0.1 pyproject-flake8==0.0.1a4
37- pflake8 sdks/ --config=sdks/bkpaas-auth/pyproject.toml
38- - name : Lint with mypy
39- run : |
40- pip install mypy==0.910 types-requests==2.25.0 types-setuptools==57.0.0 types-dataclasses==0.1.5 types-six==0.1.7 types-toml==0.1.3
41- mypy sdks/bkpaas-auth --config-file=sdks/bkpaas-auth/pyproject.toml
21+ - uses : actions/checkout@v2
22+ - name : Set up Python
23+ uses : actions/setup-python@v2
24+ with :
25+ python-version : 3.11
26+ - name : Format with isort
27+ working-directory : sdks/bkpaas-auth
28+ run : |
29+ pip install isort==5.12.0
30+ isort . --settings-path=pyproject.toml
31+ - name : Format with black
32+ working-directory : sdks/bkpaas-auth
33+ run : |
34+ pip install black==23.7.0 click==8.1.6
35+ black . --config=pyproject.toml
36+ - name : Lint with flake8
37+ working-directory : sdks/bkpaas-auth
38+ run : |
39+ pip install flake8==4.0.1 pyproject-flake8==0.0.1a5
40+ pflake8 . --config=pyproject.toml
41+ - name : Lint with mypy
42+ working-directory : sdks/bkpaas-auth
43+ run : |
44+ pip install mypy==1.12.0 types-mock==4.0.15.2 types-requests==2.32.0.20241016 types-six==1.16.21.20241009
45+ mypy . --config-file=pyproject.toml
4246
4347 test :
4448 strategy :
4549 fail-fast : false
4650 matrix :
47- python-version : ['3.7', '3.8', '3.9', '3.10' ]
51+ python-version : ["3.8", "3.9", "3.10", "3.11" ]
4852 os : [ubuntu-latest, macos-latest]
4953 runs-on : ${{ matrix.os }}
5054 steps :
51- - uses : actions/checkout@v2
52- - name : Set up Python
53- uses : actions/setup-python@v2
54- with :
55- python-version : ${{ matrix.python-version }}
56- - name : Set up Poetry
57- uses : abatilo/actions-poetry@v2.1 .0
58- with :
59- poetry-version : 1.1.13
60- - name : Install dependencies
61- working-directory : sdks/bkpaas-auth
62- run : |
63- poetry export --without-hashes --dev -o requirements-dev.txt
64- python -m pip install --upgrade pip
65- python -m pip install -r requirements-dev.txt
66- python -m pip install tox-gh-actions==2.8.1
67- - name : Run test with tox targets for ${{ matrix.python-version }}
68- working-directory : sdks/bkpaas-auth
69- run : tox
55+ - uses : actions/checkout@v2
56+ - name : Set up Python
57+ uses : actions/setup-python@v2
58+ with :
59+ python-version : ${{ matrix.python-version }}
60+ - name : Set up Poetry
61+ uses : abatilo/actions-poetry@v2.3 .0
62+ with :
63+ poetry-version : 1.5.1
64+ - name : Install dependencies
65+ working-directory : sdks/bkpaas-auth
66+ run : |
67+ poetry export --without-hashes --dev -o requirements-dev.txt
68+ python -m pip install --upgrade pip
69+ python -m pip install -r requirements-dev.txt
70+ python -m pip install tox-gh-actions==2.8.1
71+ - name : Run test with tox targets for ${{ matrix.python-version }}
72+ working-directory : sdks/bkpaas-auth
73+ run : tox
7074
7175 build :
7276 runs-on : macos-latest
7377 if : github.event.release && contains(github.event.release.tag_name, 'bkpaas-auth')
7478 steps :
75- - uses : actions/checkout@v2
76- - name : Set up Python
77- uses : actions/setup-python@v2
78- with :
79- python-version : 3.8
80- - name : Set up Poetry
81- uses : abatilo/actions-poetry@v2.1 .0
82- with :
83- poetry-version : 1.1.13
84- - name : Build bkpaas-auth
85- run : |
86- cd sdks/bkpaas-auth
87- poetry install
88- poetry build
89- echo "${{ github.event.relesae.tag_name }} ${{ github.sha }}" > Release.txt
90- cat Release.txt
91- - name : Release
92- uses : softprops/action-gh-release@v1
93- with :
94- files : |
95- Release.txt
96- sdks/bkpaas-auth/dist/*
79+ - uses : actions/checkout@v2
80+ - name : Set up Python
81+ uses : actions/setup-python@v2
82+ with :
83+ python-version : 3.8
84+ - name : Set up Poetry
85+ uses : abatilo/actions-poetry@v2.3 .0
86+ with :
87+ poetry-version : 1.5.1
88+ - name : Build bkpaas-auth
89+ run : |
90+ cd sdks/bkpaas-auth
91+ poetry install
92+ poetry build
93+ echo "${{ github.event.relesae.tag_name }} ${{ github.sha }}" > Release.txt
94+ cat Release.txt
95+ - name : Release
96+ uses : softprops/action-gh-release@v1
97+ with :
98+ files : |
99+ Release.txt
100+ sdks/bkpaas-auth/dist/*
0 commit comments