Skip to content

Commit 2bb5b08

Browse files
committed
Adds Github Actions.
1 parent 9fd3d5d commit 2bb5b08

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test suite
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
max-parallel: 4
11+
matrix:
12+
python-version: [3.7, 3.8]
13+
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v1
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install .
25+
- name: Lint
26+
run: |
27+
flake8 --ignore N802,N806,W503 --select W504 `find . -name \*.py | grep -v setup.py | grep -v version.py | grep -v __init__.py | grep -v /docs/`
28+
- name: Test
29+
run: |
30+
cd && mkdir for_test && cd for_test && pytest --pyargs nitime --cov-report term-missing --cov=AFQ

0 commit comments

Comments
 (0)