Skip to content

Commit

Permalink
Merge pull request yeatmanlab#501 from 36000/nightly_4
Browse files Browse the repository at this point in the history
Split off nightly 4 from nightly 3, nightly rests run python 3.8
  • Loading branch information
36000 committed Oct 5, 2020
2 parents a7ed627 + c16578e commit 318cb6d
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly2_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7]
python-version: [3.6, 3.7, 3.8]

steps:
- name: Checkout repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly3_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7]
python-version: [3.6, 3.7, 3.8]

steps:
- name: Checkout repo
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/nightly4_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Nightly test suite

on:
schedule:
- cron: '0 8 * * *' # every day at 1 AM, PST

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8]

steps:
- name: Checkout repo
uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
python -m pip install --upgrade pip
pip install .[dev,fury,plotly]
- name: Lint
run: |
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/`
- name: Test
run: |
export TEST_WITH_XVFB=true
cd && mkdir for_test && cd for_test && pytest --pyargs AFQ --cov-report term-missing --cov=AFQ -m "nightly4" --durations=0
2 changes: 1 addition & 1 deletion .github/workflows/nightly_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7]
python-version: [3.6, 3.7, 3.8]

steps:
- name: Checkout repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
- name: Test
run: |
export TEST_WITH_XVFB=true
cd && mkdir for_test && cd for_test && pytest --pyargs AFQ --cov-report term-missing --cov=AFQ -m "not nightly and not nightly2 and not nightly3" --durations=0
cd && mkdir for_test && cd for_test && pytest --pyargs AFQ --cov-report term-missing --cov=AFQ -m "not nightly and not nightly2 and not nightly3 and not nightly4" --durations=0
4 changes: 2 additions & 2 deletions AFQ/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def create_dummy_bids_path(n_subjects, n_sessions):
return bids_dir


@pytest.mark.nightly3
@pytest.mark.nightly4
def test_AFQ_custom_tract():
"""
Test whether AFQ can use tractography from
Expand Down Expand Up @@ -375,7 +375,7 @@ def test_AFQ_pft():
my_afq.export_rois()


@pytest.mark.nightly3
@pytest.mark.nightly4
def test_AFQ_custom_subject_reg():
"""
Test custom subject registration using AFQ object
Expand Down

0 comments on commit 318cb6d

Please sign in to comment.