Skip to content

Commit a2086a0

Browse files
authored
Merge pull request #185 from arokem/gha
Fix GHA
2 parents bddeebe + ab69a94 commit a2086a0

File tree

4 files changed

+7
-21
lines changed

4 files changed

+7
-21
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ jobs:
2121
- name: Install
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install .
24+
python -m pip install -r requirements.txt
25+
python -m pip install -r requirements-dev.txt
26+
python -m pip install .
2527
- name: Lint
2628
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/`
29+
flake8 --ignore N802,N806,W504 --select W503 `find . -name \*.py | grep -v setup.py | grep -v version.py | grep -v __init__.py | grep -v /docs/`
2830
- name: Test
2931
run: |
3032
cd && mkdir for_test && cd for_test && pytest --pyargs nitime --cov-report term-missing --cov=AFQ

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ pytest
33
pytest-cov
44
nibabel
55
networkx
6+
flake8

tools/apigen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ def generate_api_doc(self, uri):
216216
ad = '.. AUTO-GENERATED FILE -- DO NOT EDIT!\n\n'
217217

218218
chap_title = uri_short
219-
ad += (chap_title+'\n'+ self.rst_section_levels[1] * len(chap_title)
220-
+ '\n\n')
219+
ad += (chap_title+'\n' + self.rst_section_levels[1] *
220+
len(chap_title) + '\n\n')
221221

222222
# Set the chapter title to read 'module' for all modules except for the
223223
# main packages

0 commit comments

Comments
 (0)