From 089e409c3295d7233bffcbdd8dd0282fbda5dca1 Mon Sep 17 00:00:00 2001 From: John K Date: Mon, 5 Oct 2020 14:03:08 -0700 Subject: [PATCH 1/3] add 4th nightly test --- .github/workflows/test.yml | 2 +- AFQ/tests/test_api.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 065d37fed..62ff40895 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/AFQ/tests/test_api.py b/AFQ/tests/test_api.py index 36c519298..501264de1 100644 --- a/AFQ/tests/test_api.py +++ b/AFQ/tests/test_api.py @@ -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 @@ -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 From b54fd816e27b78997f1c7d19a955f5e4bdcd35bc Mon Sep 17 00:00:00 2001 From: John K Date: Mon, 5 Oct 2020 14:04:01 -0700 Subject: [PATCH 2/3] nightly tests use python 3.8 --- .github/workflows/nightly2_test.yml | 2 +- .github/workflows/nightly3_test.yml | 2 +- .github/workflows/nightly_test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly2_test.yml b/.github/workflows/nightly2_test.yml index ea0c3bb7a..ade12474e 100644 --- a/.github/workflows/nightly2_test.yml +++ b/.github/workflows/nightly2_test.yml @@ -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 diff --git a/.github/workflows/nightly3_test.yml b/.github/workflows/nightly3_test.yml index ccc796b34..56af10a42 100644 --- a/.github/workflows/nightly3_test.yml +++ b/.github/workflows/nightly3_test.yml @@ -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 diff --git a/.github/workflows/nightly_test.yml b/.github/workflows/nightly_test.yml index 44be1fe17..0f8042f13 100644 --- a/.github/workflows/nightly_test.yml +++ b/.github/workflows/nightly_test.yml @@ -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 From c16578eddb58fb1ac115e087e35f4c0f3a9d4abe Mon Sep 17 00:00:00 2001 From: John K Date: Mon, 5 Oct 2020 14:04:16 -0700 Subject: [PATCH 3/3] add nightly test 4 file --- .github/workflows/nightly4_test.yml | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/nightly4_test.yml diff --git a/.github/workflows/nightly4_test.yml b/.github/workflows/nightly4_test.yml new file mode 100644 index 000000000..2771d22f7 --- /dev/null +++ b/.github/workflows/nightly4_test.yml @@ -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