-
Notifications
You must be signed in to change notification settings - Fork 294
59 lines (51 loc) · 1.34 KB
/
contrib.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Contribution checks
on:
push:
branches:
- master
- maint/*
pull_request:
branches:
- master
- maint/*
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
stable:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest']
python-version: [3]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install black/isort
run: python -m pip install black isort[colors]
- name: Check fMRIPrep
run: |
python -m black --diff --color --check fmriprep
python -m isort --diff --color --check fmriprep
- name: Check wrapper
run: |
python -m black --diff --color --check wrapper
python -m isort --diff --color --check wrapper
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Codespell
uses: codespell-project/actions-codespell@v1