Skip to content

Commit 260c05b

Browse files
Update actions
1 parent 53db79a commit 260c05b

3 files changed

Lines changed: 17 additions & 7 deletions

File tree

.github/workflows/autoblack.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
# Othewrwise, Black is run and its changes are committed back to the incoming pull request.
44
# https://github.com/cclauss/autoblack
55

6-
name: autoblack
6+
name: fmt
77
on:
88
push:
99
branches: ["develop"]
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v1
15-
- name: Set up Python 3.7
16-
uses: actions/setup-python@v1
14+
- uses: actions/checkout@v4
15+
- name: Set up Python 3.10
16+
uses: actions/setup-python@v5
1717
with:
18-
python-version: 3.9
18+
python-version: 3.10
1919
- name: Install Black
2020
run: pip install black
2121
- name: Run black --check .
@@ -30,3 +30,10 @@ jobs:
3030
git checkout $GITHUB_HEAD_REF
3131
git commit -am "fixup: Format Python code with Black"
3232
git push origin HEAD:develop
33+
34+
- uses: isort/isort-action@v1
35+
with:
36+
requirement-files: "requirements.txt"
37+
38+
39+

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v3
42+
uses: actions/checkout@v4
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL

.github/workflows/lint.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ jobs:
66
lint:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v4
1010
- uses: psf/black@stable
1111
with:
1212
options: "--line-length 101"
13+
- uses: isort/isort-action@v1
14+
with:
15+
requirement-files: "requirements.txt"

0 commit comments

Comments
 (0)