@@ -24,14 +24,31 @@ jobs:
2424 - name : Setup Python
2525 uses : actions/setup-python@master
2626 with :
27- python-version : ' 3.11 '
27+ python-version : ' 3.12 '
2828
2929 - name : Install packages
30- run : pip install -r develop_requirements .txt
30+ run : pip install -r requirements_dev .txt
3131
3232 - name : Black
3333 run : |
34- black --check -l 120 django_opensearch_dsl tests
34+ black --check -l 120 django_opensearch_dsl/ tests/
35+
36+ isort :
37+ runs-on : ubuntu-latest
38+ steps :
39+ - uses : actions/checkout@v2
40+
41+ - name : Setup Python
42+ uses : actions/setup-python@master
43+ with :
44+ python-version : ' 3.12'
45+
46+ - name : Install packages
47+ run : pip install -r requirements_dev.txt
48+
49+ - name : Isort
50+ run : |
51+ isort --check django_opensearch_dsl/ tests/
3552
3653 pycodestyle :
3754 runs-on : ubuntu-latest
@@ -41,14 +58,14 @@ jobs:
4158 - name : Setup Python
4259 uses : actions/setup-python@master
4360 with :
44- python-version : ' 3.11 '
61+ python-version : ' 3.12 '
4562
4663 - name : Install packages
47- run : pip install -r develop_requirements .txt
64+ run : pip install -r requirements_dev .txt
4865
4966 - name : Pycodestyle
5067 run : |
51- pycodestyle django_opensearch_dsl tests
68+ pycodestyle django_opensearch_dsl/ tests/
5269
5370 pydocstyle :
5471 runs-on : ubuntu-latest
@@ -58,29 +75,44 @@ jobs:
5875 - name : Setup Python
5976 uses : actions/setup-python@master
6077 with :
61- python-version : ' 3.11 '
78+ python-version : ' 3.12 '
6279
6380 - name : Install packages
64- run : pip install -r develop_requirements .txt
81+ run : pip install -r requirements_dev .txt
6582
6683 - name : Pydocstyle
6784 run : |
68- pydocstyle --count django_opensearch_dsl tests
85+ pydocstyle --count django_opensearch_dsl/ tests/
86+
87+ bandit :
88+ runs-on : ubuntu-latest
89+ steps :
90+ - uses : actions/checkout@v2
91+
92+ - name : Setup Python
93+ uses : actions/setup-python@master
94+ with :
95+ python-version : ' 3.12'
96+
97+ - name : Install packages
98+ run : pip install -r requirements_dev.txt
99+
100+ - name : Bandit
101+ run : |
102+ bandit --ini=setup.cfg -ll 2> /dev/null
69103
70104
71105 test :
72- needs : [black, pycodestyle, pydocstyle]
106+ needs : [black, isort, pycodestyle, pydocstyle, bandit ]
73107 runs-on : ubuntu-latest
74108 strategy :
75109 matrix :
76- python-version : [ 3.7, 3.8, 3.9, '3.10 ', '3.11 ']
77- django-version : [ 32, 40, 41 ]
110+ python-version : [ 3.9, '3.10', '3.11 ', '3.12 ']
111+ django-version : [ 32, 42, 50 ]
78112 opensearch-version : [ 10, 20 ]
79113 exclude :
80- - python-version : 3.7
81- django-version : 40
82- - python-version : 3.7
83- django-version : 41
114+ - python-version : 3.9
115+ django-version : 50
84116
85117 steps :
86118 - uses : actions/checkout@v2
0 commit comments