Skip to content

Commit e1d9313

Browse files
authored
CI: GitHub actions update (#256)
* CI: Drop Python 3.7 from testing, bump actions * CI: Bump actions, add isort check
1 parent e151e67 commit e1d9313

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

.github/workflows/pytest.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ on:
77
pull_request:
88
branches: [ master, 'maint/*' ]
99

10+
defaults:
11+
run:
12+
shell: bash
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
permissions:
19+
contents: read
20+
1021
jobs:
1122
build:
1223
if: "!contains(github.event.head_commit.message, '[skip ci]')"
@@ -17,10 +28,10 @@ jobs:
1728

1829
steps:
1930
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v2
31+
uses: actions/setup-python@v4
2132
with:
2233
python-version: ${{ matrix.python-version }}
23-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v3
2435
with:
2536
fetch-depth: 0
2637
- name: Install nibabies

.github/workflows/style.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,27 @@ on:
77
pull_request:
88
branches: [ master, 'maint/*' ]
99

10+
defaults:
11+
run:
12+
shell: bash
13+
14+
permissions:
15+
contents: read
16+
1017
jobs:
1118
build:
1219
if: "!contains(github.event.head_commit.message, '[skip ci]')"
1320
runs-on: ubuntu-latest
1421
strategy:
1522
matrix:
16-
python-version: [3.9]
23+
python-version: ['3.9']
1724

1825
steps:
19-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
2027
with:
2128
fetch-depth: 1 # Only fetch the latest commit
2229
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v2
30+
uses: actions/setup-python@v4
2431
with:
2532
python-version: ${{ matrix.python-version }}
2633
- name: Install dependencies
@@ -29,3 +36,5 @@ jobs:
2936
- name: black code formatting check
3037
run: |
3138
black --check nibabies/
39+
- name: isort formatting check
40+
run: isort nibabies/ --check-only

0 commit comments

Comments
 (0)