Skip to content

Commit ee677b2

Browse files
Add python 3.11 and 3.12, add black and isort
1 parent 621c9d3 commit ee677b2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Diff for: .github/workflows/main.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ['3.8', '3.9', '3.10']
18+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1919

2020
steps:
2121
- name: Check out the codebase
@@ -32,13 +32,19 @@ jobs:
3232
- name: Install dependencies
3333
run: |
3434
python -m pip install --upgrade pip
35-
pip install bandit flake8 pytest
35+
pip install bandit black flake8 isort pytest
3636
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3737
3838
- name: Lint with flake8
3939
run: |
4040
grep -rl '^#!/.*py' | xargs -n1 flake8 --extend-ignore=E501
4141
42-
- name: Bandit
42+
- name: Check formatting with Black
43+
run: black --check .
44+
45+
- name: Check import order with isort
46+
run: isort --check-only .
47+
48+
- name: Security scan with Bandit
4349
run: |
4450
bandit -r .

0 commit comments

Comments
 (0)